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)];