Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value
Date
Msg-id 199901160540.AAA03488@candle.pha.pa.us
Whole thread Raw
In response to backend/utils/adt/float.c uses non-existent NAN value  (Taral <taral@cyberjunkie.com>)
List pgsql-hackers
> Seems at some point someone decided not to be machine-independent in
> backend/utils/adt/float.c
> 
> Redhat 5.2 system with gcc 2.8.1 doesn't define NAN unless _GNU_SOURCE is
> defined first. Although include/utils/dt.h *does* check for NAN (and HUGE_VAL)
> before using them, the float.c doesn't.
> 
> What happened?

I don't see NAN used in any file except numberic.c.  I don't see it in
float.c, at least in 6.5.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Taral
Date:
Subject: backend/utils/adt/float.c uses non-existent NAN value
Next
From: Taral
Date:
Subject: Fwd: Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value