diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-12-11 07:04:54 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-12-11 07:04:54 +0000 |
commit | ec5ae92378df86967a7e3707fc4d8cd1ab5b5234 (patch) | |
tree | 23d42b13df6ec3528ec6cf940a98ceea8ea24da2 /Build/source/texk/web2c/luatexdir/lang | |
parent | ed291494d3a3c28dbfd66cf9e160c6bc9b5fe0c0 (diff) |
LuaTeX: Recover changes from r34311 (undefined behaviour when char is signed)
git-svn-id: svn://tug.org/texlive/trunk@35786 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lang/texlang.w | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.w b/Build/source/texk/web2c/luatexdir/lang/texlang.w index 9ffe9f546a9..97d9f00c682 100644 --- a/Build/source/texk/web2c/luatexdir/lang/texlang.w +++ b/Build/source/texk/web2c/luatexdir/lang/texlang.w @@ -193,7 +193,7 @@ const char *clean_hyphenation(const char *buff, char **cleaned) char *uindex = (char *)word; const char *s = buff; - while (*s && !isspace(*s)) { + while (*s && !isspace((unsigned char)*s)) { word[i++] = (unsigned)*s; s++; if ((s-buff)>MAX_WORD_LEN) { @@ -271,7 +271,7 @@ void load_hyphenation(struct tex_language *lang, const unsigned char *buff) lua_rawgeti(L, LUA_REGISTRYINDEX, lang->exceptions); s = (const char *) buff; while (*s) { - while (isspace(*s)) + while (isspace((unsigned char)*s)) s++; if (*s) { value = s; |