Re: test failures: crc, md4, gc-md4

2006-05-10 Thread Simon Josefsson
Paul Eggert <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> writes: > >> -#define K1 0x5a827999L >> -#define K2 0x6ed9eba1L >> +#define K1 0x5a827999 >> +#define K2 0x6ed9eba1 > > That fixes the bug on hosts where int is 32 bits and long is 64 bits, > but if I understand the prob

Re: test failures: crc, md4, gc-md4

2006-05-10 Thread Paul Eggert
Simon Josefsson <[EMAIL PROTECTED]> writes: > -#define K1 0x5a827999L > -#define K2 0x6ed9eba1L > +#define K1 0x5a827999 > +#define K2 0x6ed9eba1 That fixes the bug on hosts where int is 32 bits and long is 64 bits, but if I understand the problem you found, then surely the bug remains on hosts w

Re: [bug-gnulib] Re: extend the scope of xasprintf

2006-05-10 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > The less you have to think when manipulating some code, the better. True, but there are other concerns. When I read C code like this: (char *) I stop mentally and ask "why is that cast there?" Casts like that are dangerous, and I need to

Re: AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-10 Thread Bruno Haible
Paul Eggert wrote: > > So, _Bool and bool are _not_ integer types. > > No, because ISO C99 section 6.2.5 paragraph 6 says: > > The type _Bool and the unsigned integer types that correspond to the > standard signed integer types are the _standard unsigned integer types_. You're right. I overloo

Re: AC_HEADER_STDBOOL rejects valid C99 implementation

2006-05-10 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > ISO C 99, section 6.2.5 paragraph 17, defines the term "integer types": > > The type char, the signed and unsigned integer types, and the enumerated > types are collectively called integer types. > > So, _Bool and bool are _not_ integer types. No

Re: warnings in 'des' module

2006-05-10 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > > When compiling all of gnulib with SunPRO C 5.9 on Linux/x86, there is only > one file with warnings. > > c89 -Xa -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" > -DLIBDIR=\"/packages/inst-sunpro/lib\" -I. -I. -I.. -I../intl -xO5 -c des.c >

Re: test failures: crc, md4, gc-md4

2006-05-10 Thread Simon Josefsson
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > FYI, a few of the gnulib tests currently fail: > On x86_64-unknown-linux-gnu (omitting passed tests): ... > md4 1 mismatch. expected: > a4 48 01 7a af 21 d8 52 5f c1 0a e8 7a a6 72 9d > computed: > 29 e6 63 dd dc 61 52 69 91 85 da 92 ed 96 c8 b1 > FAIL

Re: [bug-gnulib] Re: extend the scope of xasprintf

2006-05-10 Thread Bruno Haible
Mark D. Baushke wrote: > > static inline char * > > xstrcat (size_t argcount, va_list args) > > { > > char *result; > > ...elided... > > > /* Allocate and fill the result string. */ > > result = (char *) xmalloc (totalsize + 1); > > Why is the cast needed? I was under the impression that GNU