poppler/UnicodeMap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit afd91b148d3d0ba025821740ff4c075b1de2fdc5 Author: Albert Astals Cid <[email protected]> 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; }
_______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
