summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font/mapfile.w
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-11 07:04:54 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-11 07:04:54 +0000
commitec5ae92378df86967a7e3707fc4d8cd1ab5b5234 (patch)
tree23d42b13df6ec3528ec6cf940a98ceea8ea24da2 /Build/source/texk/web2c/luatexdir/font/mapfile.w
parented291494d3a3c28dbfd66cf9e160c6bc9b5fe0c0 (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/font/mapfile.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/mapfile.w8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/mapfile.w b/Build/source/texk/web2c/luatexdir/font/mapfile.w
index d94189f4d6a..6c6f749425a 100644
--- a/Build/source/texk/web2c/luatexdir/font/mapfile.w
+++ b/Build/source/texk/web2c/luatexdir/font/mapfile.w
@@ -367,15 +367,15 @@ static void fm_scan_line(void)
fm = new_fm_entry();
read_field(r, q, buf);
set_field(tfm_name);
- if (!isdigit(*r)) { /* 2nd field ps_name may not start with a digit */
+ if (!isdigit((unsigned char)*r)) { /* 2nd field ps_name may not start with a digit */
read_field(r, q, buf);
set_field(ps_name);
}
- if (isdigit(*r)) { /* font descriptor /Flags given? */
- for (s = r; isdigit(*s); s++);
+ if (isdigit((unsigned char)*r)) { /* font descriptor /Flags given? */
+ for (s = r; isdigit((unsigned char)*s); s++);
if (*s == ' ' || *s == '"' || *s == '<' || *s == '\0') { /* not e. g. 8r.enc */
fm->fd_flags = atoi(r);
- while (isdigit(*r))
+ while (isdigit((unsigned char)*r))
r++;
}
}