| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера