summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mplibdir/mpxout.w
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-21 10:45:37 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-21 10:45:37 +0000
commit65ea64308a4068db13bbe5f15e765c39efda6ab8 (patch)
treebc2dd579727d9c5e566df7805e2c60c74859d968 /Build/source/texk/web2c/mplibdir/mpxout.w
parentfe16637d6e50258433ab63b341bca68894ac265f (diff)
MetaPost: Avoid undefined behaviour when char is signed
git-svn-id: svn://tug.org/texlive/trunk@34346 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/mpxout.w')
-rw-r--r--Build/source/texk/web2c/mplibdir/mpxout.w4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/mplibdir/mpxout.w b/Build/source/texk/web2c/mplibdir/mpxout.w
index 68f4af66339..c26881b0f24 100644
--- a/Build/source/texk/web2c/mplibdir/mpxout.w
+++ b/Build/source/texk/web2c/mplibdir/mpxout.w
@@ -2751,9 +2751,9 @@ used anyway - thus just skip the value,
@c
static float mpx_get_float_map(MPX mpx, char *s) {
if (s != NULL) {
- while (isspace(*s))
+ while (isspace((unsigned char)*s))
s++;
- while (!isspace(*s) && *s)
+ while (!isspace((unsigned char)*s) && *s)
s++;
}
mpx->arg_tail = s;