Mo DeJong wrote:
long val2 = 1; /* incorrect warn when val2 is a long */
int c2 = (
((long long) val2) <
((long long)(-2147483647L - 1))
);
The result of the compare will always be false, so the warning is correct.
The long variable val2 can not hold a value sma
Hello
Gcc 3.4.2 on WinXP seems to generate a warning that it should not.
$ gcc -v
Reading specs from C:/msys/mingw/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disa