From: Theodore Ts'o Date: Sun, 21 Sep 2014 19:36:57 +0000 (-0400) Subject: libext2fs: use ~0UL instead of -1UL to avoid static checker warnings X-Git-Tag: v1.43-WIP-2015-05-18~163 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=074931ab76dc270135fb38905443c4dff3aa3a84;p=tools%2Fe2fsprogs.git libext2fs: use ~0UL instead of -1UL to avoid static checker warnings Signed-off-by: Theodore Ts'o --- 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