summaryrefslogtreecommitdiff
path: root/source/fitz/ucdn.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/ucdn.c')
-rw-r--r--source/fitz/ucdn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/ucdn.c b/source/fitz/ucdn.c
index ce2cb7c1..8b6856a5 100644
--- a/source/fitz/ucdn.c
+++ b/source/fitz/ucdn.c
@@ -33,7 +33,7 @@ typedef struct {
} MirrorPair;
typedef struct {
- int start;
+ unsigned int start;
short count, index;
} Reindex;
@@ -207,7 +207,7 @@ unsigned int ucdn_mirror(unsigned int code)
if (get_ucd_record(code)->mirrored == 0)
return code;
- mp.from = code;
+ mp.from = (unsigned short)code;
res = bsearch(&mp, mirror_pairs, BIDI_MIRROR_LEN, sizeof(MirrorPair),
compare_mp);