Fix (unsigned < 0) comparison.

This commit is contained in:
Emil Mikulic 2004-12-27 12:48:24 +00:00
parent 74fcaf5859
commit 3829ceade8

View File

@ -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");