[poppler] poppler/UnicodeMap.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Sep 16 15:47:54 UTC 2017
poppler/UnicodeMap.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit afd91b148d3d0ba025821740ff4c075b1de2fdc5
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Sep 16 17:47:42 2017 +0200
Fix warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘int*’
diff --git a/poppler/UnicodeMap.cc b/poppler/UnicodeMap.cc
index 13196667..939b1f28 100644
--- a/poppler/UnicodeMap.cc
+++ b/poppler/UnicodeMap.cc
@@ -55,7 +55,7 @@ UnicodeMap *UnicodeMap::parse(GooString *encodingNameA) {
UnicodeMapExt *eMap;
int size, eMapsSize;
char buf[256];
- int line, nBytes, i, x;
+ int line, nBytes, i;
char *tok1, *tok2, *tok3;
char *tokptr;
@@ -102,6 +102,7 @@ UnicodeMap *UnicodeMap::parse(GooString *encodingNameA) {
eMap = &map->eMaps[map->eMapsLen];
sscanf(tok1, "%x", &eMap->u);
for (i = 0; i < nBytes; ++i) {
+ unsigned int x;
sscanf(tok3 + i*2, "%2x", &x);
eMap->code[i] = (char)x;
}
More information about the poppler
mailing list