diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Image_Surface.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx index 747b051af..eaa5cc975 100644 --- a/src/Fl_Image_Surface.cxx +++ b/src/Fl_Image_Surface.cxx @@ -240,7 +240,7 @@ static int find_slot() { // return an available slot to memorize an Fl_Image_Sur for (int num = 0; num < count; num++) { if (!offscreen_api_surface[num]) return num; } - if (count >= sizeof(offscreen_api_surface)/sizeof(Fl_Image_Surface*)) return -1; + if ((unsigned)count >= sizeof(offscreen_api_surface)/sizeof(Fl_Image_Surface*)) return -1; return count++; } |
