[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] more stdint fixes

From: Oskar Liljeblad
Subject: [Bug-gnulib] more stdint fixes
Date: Mon, 20 Sep 2004 21:44:37 +0200
User-agent: Mutt/1.5.6+20040818i

Another obvious error in stdint.h.
And changelog for my last post as well.

2004-09-20  Oskar Liljeblad  <address@hidden>

        * lib/stdint_.h (INT64_MIN): Fix recursive definition.
        ({u,}intmax_t): Remove definitions, now provided by uintmax_t.m4.
        (SIZE_MAX): Remove definitions, now provided by xsize module.
        * m4/stdint.m4 (gl_STDINT_H): Require gl_AC_TYPE_UINTMAX_T
        and gl_SIZE_MAX. Make additional checks for stdint.h features.
        * modules/stdint: Depend on m4/uintmax_t.m4 and xsize module.



diff -u lib/stdint_.h.v0 lib/stdint_.h
--- lib/stdint_.h.v0        2004-09-20 21:37:34.000000000 +0200
+++ lib/stdint_.h   2004-09-20 21:37:48.000000000 +0200
@@ -144,11 +144,11 @@
 #define INT32_MAX   2147483647
 #define UINT32_MAX  4294967295U
 #if @HAVE_LONG_64BIT@
-#define INT64_MIN   (~INT64_MIN)
+#define INT64_MIN   (~INT64_MAX)
 #define INT64_MAX   9223372036854775807L
 #define UINT64_MAX 18446744073709551615UL
-#define INT64_MIN   (~INT64_MIN)
+#define INT64_MIN   (~INT64_MAX)
 #define INT64_MAX   9223372036854775807LL
 #define UINT64_MAX 18446744073709551615ULL

reply via email to

[Prev in Thread] Current Thread [Next in Thread]