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:
parent
2b2f0c43eb
commit
ecb31ba5e8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user