osx fix unsigned signed compare error 2

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-12-10 13:00:15 +08:00
parent d1c6d0bb06
commit 4812551234

View file

@ -354,7 +354,8 @@ int callback_http(struct lws_context *context, struct lws *wsi,
if (m != n)
/* partial write, adjust */
if (lws_plat_file_seek_cur(lws_get_fops(context),
pss->fd, m - n) < 0)
pss->fd, m - n) ==
(unsigned long)-1)
goto bail;
if (m) /* while still active, extend timeout */