diff options
Diffstat (limited to 'Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c')
-rw-r--r-- | Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c b/Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c index d0c86e20524..702d7937668 100644 --- a/Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c +++ b/Build/source/libs/libpaper/libpaper-1.1.24+nmu2/lib/dimen.c @@ -53,9 +53,9 @@ int psdimension(const char* what, int* dim) if (*(unit = what) == '-') ++unit; - for (; isdigit(*unit) || (*unit == '.' && !dot++); ++unit); + for (; isdigit((unsigned char)*unit) || (*unit == '.' && !dot++); ++unit); - if (*unit && !isalpha(*unit)) { + if (*unit && !isalpha((unsigned char)*unit)) { return -1; } else { double base = atof(what); |