From 5fceab6cb97cd63dd0d0c568baf95b95fdf8b9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 3 Feb 2017 10:32:42 +0100 Subject: [PATCH] * src/http.c (test_parse_range_header): Fix constants --- src/http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index 9f03d864..99f024d4 100644 --- a/src/http.c +++ b/src/http.c @@ -5121,8 +5121,10 @@ test_parse_range_header (void) { "bytes 1-999/1000", 1, 999, 1000, true }, { "bytes 42-1233/1234", 42, 1233, 1234, true }, { "bytes 42-1233/*", 42, 1233, -1, true }, - { "bytes 0-2147483648/2147483649", 0, 2147483648, 2147483649, true }, - { "bytes 2147483648-4294967296/4294967297", 2147483648, 4294967296, 4294967297, true } + { "bytes 0-2147483648/2147483649", 0, 2147483648U, 2147483649U, true }, +#if SIZEOF_WGINT >= 8 + { "bytes 2147483648-4294967296/4294967297", 2147483648U, 4294967296ULL, 4294967297ULL, true }, +#endif }; wgint firstbyteptr[sizeof(wgint)];