Re: Keep compiler silence (clang 10, implicit conversion from 'long' to 'double' )

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Keep compiler silence (clang 10, implicit conversion from 'long' to 'double' )
Дата
Msg-id 9262.1572966254@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Keep compiler silence (clang 10, implicit conversion from 'long'to 'double' )  (Yuya Watari <watari.yuya@gmail.com>)
Ответы Re: Keep compiler silence (clang 10, implicit conversion from 'long'to 'double' )  (Yuya Watari <watari.yuya@gmail.com>)
Список pgsql-hackers
Yuya Watari <watari.yuya@gmail.com> writes:
> The added macro FLOAT8_FITS_IN_INT32() does not check NaN explicitly,
> but it sufficiently handles the case.

Really?  I don't think anything is guaranteed about how a NaN will
compare when using C's non-NaN-aware comparison operators.

My thought about this was to annotate the macros with a reminder
to also check for NaN if there's any possibility that the value
is NaN.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: let's make the list of reportable GUCs configurable (was Re: Add%r substitution for psql prompts to show recovery status)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: v12 and pg_restore -f-