From 95181d96a747fa1d0e6f7344034186d13393ca5a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 10 Dec 2015 12:50:10 +0800 Subject: [PATCH] osx fix unsigned signed compare error Signed-off-by: Andy Green --- lib/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/output.c b/lib/output.c index 58d86eae..2625c341 100644 --- a/lib/output.c +++ b/lib/output.c @@ -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: