??? 06/02/09 06:11 Read: times |
#165728 - signed/unsigned Responding to: ???'s previous message |
Normal text strings are always of type char*.
Some compilers will default char to signed char. Some to unsigned char. In your case, your array is declared as an array of pointers to unsigned char, while the compiler is defaulting to signed char. Either check for compiler switches to change the default to unsigned char (bad choice) or write your code so it can handle either alternative. In this case, the array should not use the unsigned keyword. Instead, you should typecast to unsigned char when assigning to SBUF. |
Topic | Author | Date |
PC Lint - Error 64 | 01/01/70 00:00 | |
signed/unsigned | 01/01/70 00:00 | |
These are LINT Questions | 01/01/70 00:00 | |
First time with LINT? | 01/01/70 00:00 | |
Fair I think | 01/01/70 00:00 | |
The argument is | 01/01/70 00:00 | |
Some examples | 01/01/70 00:00 | |
There is no such thing as a benign warning | 01/01/70 00:00 | |
A question of dices | 01/01/70 00:00 | |
LINT has to deal with C | 01/01/70 00:00 | |
char != letter | 01/01/70 00:00 | |
Signed/unsigned char | 01/01/70 00:00 | |
signed/unsigned | 01/01/70 00:00 | |
Show it!![]() | 01/01/70 00:00 | |
How to post legible source code | 01/01/70 00:00 |