Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] gcc:0x81 out of range



> least, but with gcc 3.2.3, I got the warning ( as you can see ) : 0x81
> is out of range.

0x81 is out of range for a char. So either change your "char *" to
"unsigned char *", or if you don't want to change the function interface
you could just cast in the comparisons:

( 0x81 == *ps ) --> ( 0x81 == (unsigned char)*ps )
( 0x81 == *p )  --> ( 0x81 == (unsigned char)*p )

Darren



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links