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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: taral(at)cyberjunkie(dot)com (Taral)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value
Date: 1999-01-16 05:40:20
Message-ID: 199901160540.AAA03488@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Taral 1999-01-16 06:11:11 Fwd: Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value
Previous Message Taral 1999-01-16 05:27:41 backend/utils/adt/float.c uses non-existent NAN value