Mail Archives: djgpp/1997/06/28/04:51:11
On Sat, 28 Jun 1997, csantill wrote:
> from: csantill AT lausd DOT k12 DOT ca DOT us
>
> I'm having a problem w/a stupid for loop(or maybe I have newbie luck & I
> just found a bug in GCC v2.72). Ok, I know chars are byte values, but
> they seemed to be signed in DJGPP (ANSI C dictates that they are
> unsigned; but then again, DJGPP isn't ANSI C or ANSI anything else for
[..]
AFAIK GCC is one of the most ANSI-compliant C compilers out there. If you
really want ANSI nitpicking compliance, try:
gcc -Wall -pedantic -ansi
As for your problem, why not just declare your counter variable as an
unsigned char? and oh yes, chars need not be byte values. I think 16-bit
chars are getting popular (the UNICODE set). Under NT chars are UNICODE I
think.
-----------------------------------------------------------------------
Orlando Alcantara Andico
WWW: http://www2.mozcom.com/~orly/ Email: orly AT mozcom DOT com
ICBM: 14 deg. 30' N, 120 deg. 59' E POTS: (+632) 932-2385
- Raw text -