From 85b45416e74106910a7f087e633f80615c67de80 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 27 Feb 2016 14:07:22 +0000 Subject: Remove signed/unsigned comparison warning. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image_Surface.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- cgit v1.2.3