Fixed signed/unsigned warning

This commit is contained in:
Hardening 2013-04-14 15:41:04 +02:00
parent fa5ee0a7dd
commit 4b9f61596b

View File

@ -330,8 +330,8 @@ WINPR_API void stream_extend(wStream* stream, int request_size);
_src->pointer += _n; \
} while (0)
static INLINE BOOL stream_skip(wStream* s, int sz) {
if ((int) stream_get_left(s) < sz)
static INLINE BOOL stream_skip(wStream* s, size_t sz) {
if (stream_get_left(s) < sz)
return FALSE;
stream_seek(s, sz);
return TRUE;