summaryrefslogtreecommitdiff
path: root/src/vsnprintf.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-04-18 20:23:29 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-04-18 20:23:29 +0000
commitdd0503576da04e77207e997ca5ababd81e3dc23d (patch)
tree640d9d10986bd872d242081a95a75fcdc392ffe9 /src/vsnprintf.c
parent1c399af44498c39958b18bf6fd963c97ae3c929e (diff)
Fix compiler warnings.
Add demo.menu and all xbm and xpm files in test directory to install list. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/vsnprintf.c')
-rw-r--r--src/vsnprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vsnprintf.c b/src/vsnprintf.c
index 6949455f3..e2f39888e 100644
--- a/src/vsnprintf.c
+++ b/src/vsnprintf.c
@@ -72,13 +72,13 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) {
else sign = 0;
width = 0;
- while (isdigit(*format)) width = width * 10 + *format++ - '0';
+ while (isdigit(*format & 255)) width = width * 10 + *format++ - '0';
if (*format == '.') {
format ++;
prec = 0;
- while (isdigit(*format)) prec = prec * 10 + *format++ - '0';
+ while (isdigit(*format & 255)) prec = prec * 10 + *format++ - '0';
} else prec = -1;
if (*format == 'l' && format[1] == 'l') {