[vlc-commits] block: fix sign warning
Rémi Denis-Courmont
git at videolan.org
Sat Mar 16 18:32:43 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 14 20:12:27 2013 +0200| [1b4ff7d9782760a05992eae34274c9de249f506f] | committer: Rémi Denis-Courmont
block: fix sign warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b4ff7d9782760a05992eae34274c9de249f506f
---
src/misc/block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/block.c b/src/misc/block.c
index 59a096b..acf1e64 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -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;
More information about the vlc-commits
mailing list