Removed compilation warning about signed/unsigned comparison.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2014-05-23 21:19:29 +00:00
parent 2b2f0c43eb
commit ecb31ba5e8

View File

@ -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);