Drop C99 features

This commit is contained in:
Tatsuya Kinoshita
2015-01-15 20:50:16 +09:00
parent cbec7032ee
commit ee0405c689
2 changed files with 3 additions and 3 deletions

View File

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