diff options
-rw-r--r-- | mupdf/pdf_cmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_cmap.c b/mupdf/pdf_cmap.c index b09d69fd..f435f9ec 100644 --- a/mupdf/pdf_cmap.c +++ b/mupdf/pdf_cmap.c @@ -594,7 +594,7 @@ static int codefromstring(char *buf, int len) { int a = 0; while (len--) - a = (a << 8) | *buf++; + a = (a << 8) | *(unsigned char *)buf++; return a; } |