diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-19 11:43:52 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-19 11:43:52 +0000 |
commit | dfa496b51809b9404ee4f2dde02291745837b53f (patch) | |
tree | 5d9bd3bd74d348164f50b2ed9a5878fcfac8b743 /Build/source/texk/web2c/luatexdir/font/tounicode.w | |
parent | e5b8a1a0369901d3d73384cf553619d9351679aa (diff) |
pdfTeX, LuaTeX: Avoid undefined behaviour when char is signed
git-svn-id: svn://tug.org/texlive/trunk@34311 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/tounicode.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/tounicode.w | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/tounicode.w b/Build/source/texk/web2c/luatexdir/font/tounicode.w index b33bef027a0..1ed589eb1ce 100644 --- a/Build/source/texk/web2c/luatexdir/font/tounicode.w +++ b/Build/source/texk/web2c/luatexdir/font/tounicode.w @@ -92,7 +92,7 @@ void def_tounicode(str_number glyph, str_number unistr) for (i = 0; i < l; i++) { if (p[i] == ' ') valid_unistr = 2; /* if a space occurs we treat this entry as a string */ - else if (!isXdigit(p[i])) { + else if (!isXdigit((unsigned char)p[i])) { valid_unistr = 0; break; } @@ -151,7 +151,7 @@ static long check_unicode_value(char *s, boolean multiple_value) return UNI_UNDEF; for (i = 0; i < l; i++) { - if (!isXdigit(s[i])) + if (!isXdigit((unsigned char)s[i])) return UNI_UNDEF; if (multiple_value) { if (i % 4 == 3) { |