Re: Regression failure for floats

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Regression failure for floats
Дата
Msg-id 18440.1079241672@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Regression failure for floats  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing the following regression failure for current CVS.  On my OS,
> BSD/OS 4.3, it seems once you hit Infinity, you can't negate it. 
> /usr/include/math.h has:
>     /* Generate an overflow to create +Inf; the multiply shuts up gcc 1 */
>     #define HUGE_VAL    (1e250*1e250)       /* IEEE: positive infinity */
> and our float4in code has:
>         else if (strcasecmp(num, "-Infinity") == 0)
>             val = -HUGE_VAL;
> Seems that doesn't work for me.

No, the bug is that Neil assumed isinf() would tell him the sign of an
infinity.  I believe he's about to commit a patch for this and some
other bogosities.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-hackers-win32] What's left?
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Regression failure for floats