[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdint and cygwin bug
From: |
Paul Eggert |
Subject: |
Re: stdint and cygwin bug |
Date: |
Thu, 05 Apr 2007 16:34:58 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Eric Blake <address@hidden> writes:
> According to Paul Eggert on 4/5/2007 10:07 AM:
>>> - int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
>>> + int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1;
> It shows two bugs - first, that WINT_MIN was not 0; and second, that
> WINT_MIN was a signed value even though wint_t is not.
How about this instead? It seems like a more-complete check.
int check_WINT: (((wint_t) -1 < 0
? WINT_MIN + WINT_MAX - 1 < 0
: WINT_MIN == 0 && WINT_MAX == (wint_t) -1)
? 1 : -1);
- stdint and cygwin bug, Eric Blake, 2007/04/03
- Re: stdint and cygwin bug, Paul Eggert, 2007/04/03
- Re: stdint and cygwin bug, Eric Blake, 2007/04/04
- Re: stdint and cygwin bug, Bruno Haible, 2007/04/04
- Re: stdint and cygwin bug, Eric Blake, 2007/04/04
- Re: stdint and cygwin bug, Paul Eggert, 2007/04/05
- Re: stdint and cygwin bug, Eric Blake, 2007/04/05
- Re: stdint and cygwin bug,
Paul Eggert <=
- Re: stdint and cygwin bug, Bruno Haible, 2007/04/05