mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
Remove signed/unsigned comparison warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -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++) {
|
for (int num = 0; num < count; num++) {
|
||||||
if (!offscreen_api_surface[num]) return 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++;
|
return count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user