This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: signed vs unsigned pointer warning


> -----Original Message-----
> From: Morten Welinder
> Sent: 22 September 2004 17:43

> > EOF isn't a character.
> 
> No-one said it was.  It evaluates to an int.
> 
> > I don't understand your point.  isprint takes a char * argument.
> 
> NO!
> 
> It takes an int argument.  And only certain ints are valid: EOF
> (== -1 everywhere, it seems) and the range of unsigned char, i.e.,
> 0-255.  

Heh.  Can we not just work around this problem by replacing the definition
of EOF

#define EOF -1U

;)

[Ok, now I'm just being silly!]

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]