From ecb31ba5e85e96e44b232751013813f571326766 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 23 May 2014 21:19:29 +0000 Subject: [PATCH] Removed compilation warning about signed/unsigned comparison. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 1e08dfa78..6df61e150 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1219,7 +1219,7 @@ static long getIncrData(uchar* &data, const XSelectionEvent& selevent, long lowe num_bytes = nitems * (actual_format / 8); offset += num_bytes/4; //slice_size += num_bytes; - if (total + num_bytes > lower_bound) data = (uchar*)realloc(data, total + num_bytes); + if (total + num_bytes > (size_t)lower_bound) data = (uchar*)realloc(data, total + num_bytes); memcpy(data + total, prop, num_bytes); total += num_bytes; if (prop) XFree(prop); } while (bytes_after != 0);