diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc index dd49630b463..bbdb0ec44d5 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/PSTokenizer.cc @@ -77,12 +77,12 @@ GBool PSTokenizer::getToken(char *buf, int size, int *length) { // read a token i = 0; - buf[i++] = c; + buf[i++] = (char)c; if (c == '(') { backslash = gFalse; while ((c = lookChar()) != EOF) { if (i < size - 1) { - buf[i++] = c; + buf[i++] = (char)c; } getChar(); if (c == '\\') { @@ -97,7 +97,7 @@ GBool PSTokenizer::getToken(char *buf, int size, int *length) { while ((c = lookChar()) != EOF) { getChar(); if (i < size - 1 && specialChars[c] != 1) { - buf[i++] = c; + buf[i++] = (char)c; } if (c == '>') { break; @@ -107,7 +107,7 @@ GBool PSTokenizer::getToken(char *buf, int size, int *length) { while ((c = lookChar()) != EOF && !specialChars[c]) { getChar(); if (i < size - 1) { - buf[i++] = c; + buf[i++] = (char)c; } } } |