2010-12-21 07:05 AM
Compiling problem with Cosmic CxSTM8 16K and LONG data
2011-05-17 06:11 AM
The compiler is behaving perfectly correctly!
ISO/IEC 9899:1990 - the so-called ''ANSI C'' specification - states:''The type of an integer constant is the first of the corresponding list in which its value can be represented. Unsuffixed decimal: int, long int, unsigned long int...''If you want to force the type of the constant to be unsigned, then you need to add the suffix 'u' or 'U'...
2011-05-17 06:11 AM
Works fine now... thanks for the reminder (but where is my Bible-C?!).
'Thought that the compiler would warn that signed data was compared with unsigned variables, but I guess you can not expect too much from a free compiler.2011-05-17 06:11 AM
>> 'Thought that the compiler would warn that signed data was compared with unsigned variables, but I guess you can not expect too much from a free compiler.
can you provide an example of a compiler raising a warning for this? Regards, Luca2011-05-17 06:11 AM
''Thought that the compiler would warn that signed data was compared with unsigned variables''
Other than special cases, what's to warn about?What warning would you suggest?