Commit ee0405c6 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

Drop C99 features

parent cbec7032
......@@ -13,9 +13,9 @@
static inline size_t
z_mult_no_oflow_(size_t n, size_t size)
{
if (size != 0 && n > SIZE_MAX / size) {
if (size != 0 && n > ULONG_MAX / size) {
fprintf(stderr,
"w3m: overflow in malloc, %zu*%zu\n", n, size);
"w3m: overflow in malloc, %lu*%lu\n", (unsigned long)n, (unsigned long)size);
exit(1);
}
return n * size;
......
......@@ -386,7 +386,7 @@ make_optional_header_string(char *s)
static void *
die_oom(size_t bytes)
{
fprintf(stderr, "Out of memory: %zu bytes unavailable!\n", bytes);
fprintf(stderr, "Out of memory: %lu bytes unavailable!\n", (unsigned long)bytes);
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment