diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-01-24 15:35:28 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-01-31 11:56:59 +0100 |
commit | 580437136972616a93c9f2c76de12050bd6af364 (patch) | |
tree | 364ef0b63d5e9c488c89bd796894671e14870520 /source | |
parent | dfcdcad55135de602358339bbc3d20bb8bcbf78e (diff) | |
download | mupdf-580437136972616a93c9f2c76de12050bd6af364.tar.xz |
Don't use signed int for parsing binary string into integer.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-cmap-parse.c | 2 |
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; |