[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3
From: |
Gary V. Vaughan |
Subject: |
Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3 |
Date: |
Sun, 1 May 2011 18:59:47 +0700 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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)
pgpQvr_2n56kM.pgp
Description: PGP signature
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Gary V. Vaughan, 2011/05/01
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Paul Eggert, 2011/05/01
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3,
Gary V. Vaughan <=
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Paul Eggert, 2011/05/01
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Gary V. Vaughan, 2011/05/01
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Paul Eggert, 2011/05/01
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Gary V. Vaughan, 2011/05/02
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Paul Eggert, 2011/05/02
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Gary V. Vaughan, 2011/05/03
- Re: verify fails on ia64-hpux11.23 in libunistring-0.9.3, Paul Eggert, 2011/05/03