vlc | branch: master | Rémi Denis-Courmont <[email protected]> | 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;

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to