Date: Thu, 27 Oct 94 21:13 GMT From: shaw AT cix DOT compulink DOT co DOT uk (Shaw Carruthers) Subject: GCC 260 Maths Bug To: djgpp AT sun DOT soe DOT clarkson DOT edu Cc: shaw AT cix DOT compulink DOT co DOT uk Reply-To: shaw AT cix DOT compulink DOT co DOT uk GCC 260 Maths Bug 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 more experience of GCC like to comment. TIA Shaw #include int main() { int i; double a; a=2.5e10; i=(int)a; printf("%d\n",i); return 0; }