提交 0f779940 编写于 作者: D Dave Cramer

fix compiler error on OS X. Subtracting two unsigned ints will never be less than 0

上级 3166a10d
......@@ -2929,7 +2929,7 @@ static void handle_post_request(request_t *r, int header_end)
ssize_t n;
size_t buf_space_left = r->in.dbufmax - r->in.dbuftop;
if (r->in.davailable - buf_space_left >= 0)
if (r->in.davailable > buf_space_left)
want = buf_space_left;
else
want = r->in.davailable;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册