test: %zu to %lu for msvcrt fixes for Mingw64

v0.10
Martell Malone 13 years ago committed by Ben Noordhuis
parent 2ec48fd65d
commit 9852e5d048

@ -2416,8 +2416,8 @@ test_no_overflow_long_body (int req, size_t length)
size_t parsed; size_t parsed;
size_t i; size_t i;
char buf1[3000]; char buf1[3000];
size_t buf1len = sprintf(buf1, "%s\r\nConnection: Keep-Alive\r\nContent-Length: %zu\r\n\r\n", size_t buf1len = sprintf(buf1, "%s\r\nConnection: Keep-Alive\r\nContent-Length: %lu\r\n\r\n",
req ? "POST / HTTP/1.0" : "HTTP/1.0 200 OK", length); req ? "POST / HTTP/1.0" : "HTTP/1.0 200 OK", (unsigned long)length);
parsed = http_parser_execute(&parser, &settings_null, buf1, buf1len); parsed = http_parser_execute(&parser, &settings_null, buf1, buf1len);
if (parsed != buf1len) if (parsed != buf1len)
goto err; goto err;
@ -2435,9 +2435,9 @@ test_no_overflow_long_body (int req, size_t length)
err: err:
fprintf(stderr, fprintf(stderr,
"\n*** error in test_no_overflow_long_body %s of length %zu ***\n", "\n*** error in test_no_overflow_long_body %s of length %lu ***\n",
req ? "REQUEST" : "RESPONSE", req ? "REQUEST" : "RESPONSE",
length); (unsigned long)length);
abort(); abort();
} }

Loading…
Cancel
Save