summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/mpost.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-21 10:44:58 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-06-21 10:44:58 +0000
commit4e850024741afa0c993d267a6d2c1ff0af2f6609 (patch)
tree6becd0257ca15dcd625a7d581f4a672182d1eb5c /Build/source/texk/dvipdfm-x/mpost.c
parent784b0639f1700bdc841a68ad8174806494db3c2f (diff)
dvipdfm-x: Avoid undefined behaviour when char is signed
git-svn-id: svn://tug.org/texlive/trunk@34344 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/mpost.c')
-rw-r--r--Build/source/texk/dvipdfm-x/mpost.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/mpost.c b/Build/source/texk/dvipdfm-x/mpost.c
index ea65d03dde2..36476929021 100644
--- a/Build/source/texk/dvipdfm-x/mpost.c
+++ b/Build/source/texk/dvipdfm-x/mpost.c
@@ -219,7 +219,7 @@ mps_scan_bbox (const char **pp, const char *endptr, pdf_rect *bbox)
int i;
/* skip_white() skips lines starting '%'... */
- while (*pp < endptr && isspace(**pp))
+ while (*pp < endptr && isspace((unsigned char)**pp))
(*pp)++;
/* Scan for bounding box record */
@@ -254,7 +254,7 @@ mps_scan_bbox (const char **pp, const char *endptr, pdf_rect *bbox)
}
}
skip_line (pp, endptr);
- while (*pp < endptr && isspace(**pp))
+ while (*pp < endptr && isspace((unsigned char)**pp))
(*pp)++;
}
@@ -1414,14 +1414,14 @@ mp_parse_body (const char **start, const char *end, double x_user, double y_user
skip_white(start, end);
while (*start < end && !error) {
- if (isdigit(**start) ||
+ if (isdigit((unsigned char)**start) ||
(*start < end - 1 &&
(**start == '+' || **start == '-' || **start == '.' ))) {
double value;
char *next;
value = strtod(*start, &next);
- if (next < end && !strchr("<([{/%", *next) && !isspace(*next)) {
+ if (next < end && !strchr("<([{/%", *next) && !isspace((unsigned char)*next)) {
WARN("Unkown PostScript operator.");
dump(*start, next);
error = 1;