]> git.lizzy.rs Git - zlib.git/commitdiff
Eliminate use of ULL constants.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 27 Mar 2022 07:28:42 +0000 (00:28 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 27 Mar 2022 08:54:17 +0000 (01:54 -0700)
0xffffffffffffffffULL was causing warnings for C99 usage. The
suffix for the constant is not necessary anyway, so this commit
removes them.

zutil.h

diff --git a/zutil.h b/zutil.h
index 14277bcf2b9c46f15e435adf4f280281b559a729..21f8e7a3485b4d6c02a64458e6b49fe353ed8a13 100644 (file)
--- a/zutil.h
+++ b/zutil.h
@@ -44,11 +44,11 @@ typedef unsigned long  ulg;
 
 #if !defined(Z_U8) && !defined(Z_SOLO) && defined(STDC)
 #  include <limits.h>
-#  if (ULONG_MAX == 0xffffffffffffffffULL)
+#  if (ULONG_MAX == 0xffffffffffffffff)
 #    define Z_U8 unsigned long
-#  elif (ULLONG_MAX == 0xffffffffffffffffULL)
+#  elif (ULLONG_MAX == 0xffffffffffffffff)
 #    define Z_U8 unsigned long long
-#  elif (UINT_MAX == 0xffffffffffffffffULL)
+#  elif (UINT_MAX == 0xffffffffffffffff)
 #    define Z_U8 unsigned
 #  endif
 #endif