]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #2841]
authorUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2006 21:23:54 +0000 (21:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2006 21:23:54 +0000 (21:23 +0000)
2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
[BZ #2841]
* sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
since C99 requires the result to promote to 'int' when uint_least8_t
and uint_least16_t promote to 'int'.

ChangeLog
sysdeps/generic/stdint.h

index e7c031dea1247bed62a2e6795f28300a8c24f591..2fd1aec324468b02abad7f6bf57f840ed8d1ac4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       [BZ #2841]
+       * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
+       since C99 requires the result to promote to 'int' when uint_least8_t
+       and uint_least16_t promote to 'int'.
+
 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #3013]
index c86003040973a27c7c6a283620d4e6bf1984caa1..2c729ad2f145079c2714346ff2c9a85b986cb451 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2001,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -297,8 +297,8 @@ typedef unsigned long long int      uintmax_t;
 # endif
 
 /* Unsigned.  */
-# define UINT8_C(c)    c ## U
-# define UINT16_C(c)   c ## U
+# define UINT8_C(c)    c
+# define UINT16_C(c)   c
 # define UINT32_C(c)   c ## U
 # if __WORDSIZE == 64
 #  define UINT64_C(c)  c ## UL