diff options
Diffstat (limited to 'src/Fl_XPM_Image.cxx')
| -rw-r--r-- | src/Fl_XPM_Image.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_XPM_Image.cxx b/src/Fl_XPM_Image.cxx index 438aa544f..d60f8fd1a 100644 --- a/src/Fl_XPM_Image.cxx +++ b/src/Fl_XPM_Image.cxx @@ -67,6 +67,7 @@ Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) { char *myp = buffer; char *q = buffer+1; while (*q != '\"' && myp < buffer+MAXSIZE) { + int x; if (*q == '\\') switch (*++q) { case '\r': case '\n': @@ -76,7 +77,7 @@ Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) { case 'x': { q++; int n = 0; - for (int x = 0; x < 2; x++) { + for (x = 0; x < 2; x++) { int xd = hexdigit(*q); if (xd > 15) break; n = (n<<4)+xd; @@ -88,7 +89,7 @@ Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) { int c = *q++; if (c>='0' && c<='7') { c -= '0'; - for (int x=0; x<2; x++) { + for (x =0; x<2; x++) { int xd = hexdigit(*q); if (xd>7) break; c = (c<<3)+xd; |
