* src/http.c (test_parse_range_header): Fix constants

This commit is contained in:
Tim Rühsen 2017-02-03 10:32:42 +01:00
parent d6eead1794
commit 5fceab6cb9

View File

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