Hi Paul,

Thanks for the response.

On Sat, Apr 30, 2011 at 10:55:24PM -0700, Paul Eggert wrote:
> On 04/30/11 22:10, Gary V. Vaughan wrote:
> >   test-stdint.o test-stdint.c
> >>   "test-stdint.c", line 189: error #2105: invalid size for bit field
> >>     verify (TYPE_MAXIMUM (uint_fast8_t) == UINT_FAST8_MAX);
> >>     ^
> 
> This would appear to be a bug in stdint, not in verify.
> 
> What is the value of TYPE_MAXIMUM (uint_fast8_t) and of UINT_FAST8_MAX?

$ pwd
/opt/build/libunistring-0.9.3/tests
$ cat ,t.c
#include <stdint.h>
#include "intprops.h"
int main (int argc, char **argv) {
  printf("%lx\n", (unsigned long) TYPE_MAXIMUM (uint_fast8_t));
  printf("%lx\n", (unsigned long) UINT_FAST8_MAX);
  return 0;
}
$ cc -I. -I../lib -o ,t ,t.c || echo fail
$ ./,t
ffffffff
ffffffff
$ cc -I. -I../lib +DD64 -o ,t ,t.c || echo fail
$ ./,t
ffffffff
ffffffffffffffff

> And what is the type uint_fast8_t?

% grep uint_fast8_t ./lib/stdint.h
lib/stdint.h:#undef uint_fast8_t
lib/stdint.h:typedef unsigned long int gl_uint_fast8_t;
lib/stdint.h:#define uint_fast8_t gl_uint_fast8_t

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)

Attachment: pgpbxihy5x2CC.pgp
Description: PGP signature

Reply via email to