diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-09-30 16:44:36 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-10-22 16:52:03 +0200 |
commit | 362d23df9f6151446419757d48a53ff33b67cf2f (patch) | |
tree | 7920610636677a715c748e138b8baffea6069410 /source | |
parent | 60d6fd50d6817e8fd7aa1873f4a8063f1e56768f (diff) | |
download | mupdf-362d23df9f6151446419757d48a53ff33b67cf2f.tar.xz |
Fix warnings.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/ftoa.c | 8 | ||||
-rw-r--r-- | source/pdf/pdf-unicode.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/source/fitz/ftoa.c b/source/fitz/ftoa.c index 47759425..355f0879 100644 --- a/source/fitz/ftoa.c +++ b/source/fitz/ftoa.c @@ -39,10 +39,10 @@ enum { NSIGNIF = 9 }; */ static float pows10[] = { - 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, - 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, - 1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29, - 1e30, 1e31, 1e32, 1e33, 1e34, 1e35, 1e36, 1e37, 1e38, 1e39, + 1e0f, 1e1f, 1e2f, 1e3f, 1e4f, 1e5f, 1e6f, 1e7f, 1e8f, 1e9f, + 1e10f, 1e11f, 1e12f, 1e13f, 1e14f, 1e15f, 1e16f, 1e17f, 1e18f, 1e19f, + 1e20f, 1e21f, 1e22f, 1e23f, 1e24f, 1e25f, 1e26f, 1e27f, 1e28f, 1e29f, + 1e30f, 1e31f, 1e32f, 1e33f, 1e34f, 1e35f, 1e36f, 1e37f, 1e38f }; #define npows10 ((int)(sizeof(pows10)/sizeof(pows10[0]))) #define pow10(x) fmtpow10(x) diff --git a/source/pdf/pdf-unicode.c b/source/pdf/pdf-unicode.c index 6b893051..d51d580b 100644 --- a/source/pdf/pdf-unicode.c +++ b/source/pdf/pdf-unicode.c @@ -24,7 +24,8 @@ static pdf_cmap * pdf_remap_cmap(fz_context *ctx, pdf_cmap *gid_from_cpt, pdf_cmap *ucs_from_cpt) { pdf_cmap *ucs_from_gid; - unsigned int i, a, b, x; + unsigned int a, b, x; + int i; ucs_from_gid = pdf_new_cmap(ctx); |