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: jwieck(at)debis(dot)com
Cc: taral(at)cyberjunkie(dot)com, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] backend/utils/adt/float.c uses non-existent NAN value
Date: 1999-01-18 12:27:48
Message-ID: 199901181227.HAA29811@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?
>
> Don't know exactly - but
>
> the new NUMERIC data type started recently a discussion about
> NAN, because I tried to be able to convert NAN from/to
> float's, and that started some trouble. I'm not sure how this
> went into adt/float.c. At least I think we should fix all the
> NAN handling for v6.5.
>

I fixed that. Added the NAN define from numeric.c.

--
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 Bruce Momjian 1999-01-18 12:34:58 Re: [HACKERS] Postgres Speed or lack thereof
Previous Message Bruce Momjian 1999-01-18 12:27:06 Re: [HACKERS] I need a PostgreSQL vacation