From 074931ab76dc270135fb38905443c4dff3aa3a84 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 21 Sep 2014 15:36:57 -0400 Subject: [PATCH] libext2fs: use ~0UL instead of -1UL to avoid static checker warnings Signed-off-by: Theodore Ts'o --- lib/ext2fs/ext2fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index d931fff..fef6910 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -1712,7 +1712,7 @@ _INLINE_ errcode_t ext2fs_get_memzero(unsigned long size, void *ptr) _INLINE_ errcode_t ext2fs_get_array(unsigned long count, unsigned long size, void *ptr) { - if (count && (-1UL)/count