Mail Archives: djgpp/1994/10/30/09:18:27
> I have just installed GCC 260 on my 486DX266 PC under DOS6.2. This is my
> first encounter with this package and I have found a bug immediately. The
> code below hangs at the double to int conversion in line 7; it should
> generate an overflow error ( or return 0x80000000). Would someone with
I also have 486DX266 with DOS 6.2, but your program works for me.
It indeed returns 0x80000000, unless compiled with -O, in which
case the compiler correctly prints a warning about overflow
(under -Wall switch) and the program returns 0x7fffffff.
Did you use some other switches while compiling? If not, it might
be useful to post your system configuration, because the fact your
system hangs might have nothing to do with this specific program.
- Raw text -