From: Berwyn <be...@br...> - 2009-04-23 04:25:16
|
Hi. There seems to be a mingw bug with long-long multiplication: #include <stdio.h> int main(void) { printf("%lld\n", (long long)1240458154*(long long)1000000); return 0; } This should produce 1240458154000000 -- and it does on linux with gcc-3.3.6 and gcc-4.1.3. But with Mingw's gcc-3.4.5 it produces -1415528832. BTW: I've also noticed this bug using winAVR's GCC-4.2.2 for embedded systems. Is anyone else noticing this? Thanks, Berwyn |