From 3829ceade894a4eaab01bf581af4f9ed95ade593 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Mon, 27 Dec 2004 12:48:24 +0000 Subject: [PATCH] Fix (unsigned < 0) comparison. --- trunk/darkhttpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index ca314c3..3453d0a 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -1837,7 +1837,7 @@ static void process_get(struct connection *conn) from = to - conn->range_end + 1; /* check for wrapping */ - if (from < 0 || from > to) from = 0; + if (from > to) from = 0; } else errx(1, "internal error - from/to mismatch");