summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/transition.c1
-rw-r--r--source/fitz/ucdn.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/source/fitz/transition.c b/source/fitz/transition.c
index 92582253..c71729a9 100644
--- a/source/fitz/transition.c
+++ b/source/fitz/transition.c
@@ -161,5 +161,4 @@ int fz_generate_transition(fz_pixmap *tpix, fz_pixmap *opix, fz_pixmap *npix, in
case 3: return wipe_tb(tpix, opix, npix, time);
}
}
- return 0;
}
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);