]> gcc.gnu.org Git - gcc.git/commitdiff
John David Anglin <dave@hiauly1.hia.nrc.ca>
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Wed, 6 Sep 2000 06:10:12 +0000 (06:10 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 6 Sep 2000 06:10:12 +0000 (23:10 -0700)
        * md5.h (md5_uint32): Choose via INT_MAX instead of UINT_MAX.

From-SVN: r36181

include/ChangeLog
include/md5.h

index 5a541b610bcc77f71cec947741aa26a5c264ffe6..95a00be6eef437a9e383f2868572c4a3c16c6010 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-05  John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+       * md5.h (md5_uint32): Choose via INT_MAX instead of UINT_MAX.
+
 2000-09-04  Alex Samuel  <samuel@codesourcery.com>
 
        * dyn-string.h: Adjust formatting. 
index ad97efc321355d02cf5de1e085a063dbf5eb4883..0840b31b4587372603e1bc9bd523fc6ce1a62668 100644 (file)
 # include <sys/types.h>
 typedef u_int32_t md5_uint32;
 #else
-# if defined __STDC__ && __STDC__
-#  define UINT_MAX_32_BITS 4294967295U
-# else
-#  define UINT_MAX_32_BITS 0xFFFFFFFF
-# endif
+#  define INT_MAX_32_BITS 2147483647
 
 /* If UINT_MAX isn't defined, assume it's a 32-bit type.
    This should be valid for all systems GNU cares about because
    that doesn't include 16-bit systems, and only modern systems
    (that certainly have <limits.h>) have 64+-bit integral types.  */
 
-# ifndef UINT_MAX
-#  define UINT_MAX UINT_MAX_32_BITS
+# ifndef INT_MAX
+#  define INT_MAX INT_MAX_32_BITS
 # endif
 
-# if UINT_MAX == UINT_MAX_32_BITS
+# if INT_MAX == INT_MAX_32_BITS
    typedef unsigned int md5_uint32;
 # else
-#  if USHRT_MAX == UINT_MAX_32_BITS
+#  if SHRT_MAX == INT_MAX_32_BITS
     typedef unsigned short md5_uint32;
 #  else
-#   if ULONG_MAX == UINT_MAX_32_BITS
+#   if LONG_MAX == INT_MAX_32_BITS
      typedef unsigned long md5_uint32;
 #   else
      /* The following line is intended to evoke an error.
This page took 0.183788 seconds and 5 git commands to generate.