1.1.0: wrong negative HUGE_VAL

Tim Prince tprince@computer.org
Fri Jun 9 08:31:00 GMT 2000


FWIW, I reproduce this problem here.

----- Original Message -----
From: <ruediger.franke@de.abb.com>
To: <cygwin@sourceware.cygnus.com>
Sent: Friday, June 09, 2000 8:43 AM
Subject: 1.1.0: wrong negative HUGE_VAL


>
>
> Hi,
>
> yesterday I installed cygwin using setup and internet download from
> ftp.sunet.se. Unfortunately my programs developed under B20 don't run
anymore
> properly.
>      The problem is that HUGE_VAL contains the wrong negative value
> -6.59614e-229. The following test program reproduces my probelm:
>
> #include <math.h>
> #include <stdio.h>
>
> int main()
> {
>   printf("HUGE_VAL is: %g\n", HUGE_VAL);
>   printf(" 1.0/0.0 is: %g\n", 1.0/0.0);
> }
>
> Compiled under 1.1.0, the program produces (using gcc or g++):
> HUGE_VAL is: -6.59614e-229
>  1.0/0.0 is: Inf
>
> Compiled under B20, it produces the same output when using gcc, but
with g++ the
>  result is as expected:
> HUGE_VAL is: Inf
>  1.0/0.0 is: Inf
>
> Can you help?
> Ruediger
>
> P.S. here is the output of cygcheck:
> (See attached file: cygcheck.out)
>


------------------------------------------------------------------------
--------


> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list