summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-01-24 15:35:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-01-31 11:56:59 +0100
commit580437136972616a93c9f2c76de12050bd6af364 (patch)
tree364ef0b63d5e9c488c89bd796894671e14870520 /source/pdf
parentdfcdcad55135de602358339bbc3d20bb8bcbf78e (diff)
downloadmupdf-580437136972616a93c9f2c76de12050bd6af364.tar.xz
Don't use signed int for parsing binary string into integer.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-cmap-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-cmap-parse.c b/source/pdf/pdf-cmap-parse.c
index 594d43c8..38d98194 100644
--- a/source/pdf/pdf-cmap-parse.c
+++ b/source/pdf/pdf-cmap-parse.c
@@ -10,7 +10,7 @@
static int
pdf_code_from_string(char *buf, int len)
{
- int a = 0;
+ unsigned int a = 0;
while (len--)
a = (a << 8) | *(unsigned char *)buf++;
return a;