Mail Archives: djgpp-workers/2001/02/04/13:36:27
> From: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
> Date: Sun, 4 Feb 2001 14:18:06 -0000
> >
> > However, I'm not sure we need to push it as far as -2147483648. wint_t
> > should hold everything wchar_t does and WEOF. C99 also seems to require
> > that WINT_MIN is at most -32767, which seems to be sufficient both for
> > wchar_t, which is unsigned short, and for WEOF, which is -1.
> >
> > So what are the reasons for pushing WINT_MIN all the way to INT_MIN?
>
> I assumed that WINT_MIN was supposed to represent the minimum
> possible value of a wint_t. However, the C99 standard (or, at least,
> the draft) does not seem to say this explicitly. Nonetheless, I
> think it would be strange if it were possible to assign a value less
> than WINT_MIN to a wint_t.
Yes, I think you are right. Anything but INT_MIN would be confusing.
- Raw text -