Commit 1b4ff7d9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

block: fix sign warning

parent 26e8a752
......@@ -450,7 +450,7 @@ block_t *block_File (int fd)
}
/* Prevent an integer overflow in mmap() and malloc() */
if (st.st_size >= SIZE_MAX)
if ((uintmax_t)st.st_size >= SIZE_MAX)
{
errno = ENOMEM;
return NULL;
......
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