osx fix unsigned signed compare error

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-12-10 12:50:10 +08:00
parent 4e442b7743
commit 95181d96a7

View file

@ -547,7 +547,8 @@ LWS_VISIBLE int lws_serve_http_file_fragment(struct lws_context *context,
/* adjust for what was not sent */
if (lws_plat_file_seek_cur(&context->fops,
wsi->u.http.fd,
m - n) < 0)
m - n) ==
(unsigned long)-1)
return -1;
}
all_sent: