Re: INT64_MIN and _MAX

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: INT64_MIN and _MAX
Дата
Msg-id 87lhil6dpi.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: INT64_MIN and _MAX  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Список pgsql-hackers
>>>>> "Kyotaro" == Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> writes:
Kyotaro> Hello,Kyotaro> Grep showed me some unfixed usages of bare constant orKyotaro> INT64CONST as (u)int64 max/min
values.
Kyotaro> ./src/interfaces/ecpg/pgtypeslib/dt.h:

I didn't touch the ecpg stuff since it wasn't too clear that it was safe
to change, but on second look it is.
Kyotaro> ./contrib/pgcrypto/imath.h:

I didn't touch this since it was obviously a library copied from
somewhere else.
Kyotaro> ./src/backend/utils/mb/wchar.cKyotaro> ./src/bin/psql/mbprint.c:>> return 0xffffffff;

Here 0xffffffff is not a uint or uint32, but a pg_wchar (which is
unsigned int, not uint32). What's needed there is not UINT_MAX but
rather a PG_WCHAR_INVALID or similar definition in pg_wchar.h.

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Error with index on unlogged table
Следующее
От: Álvaro Hernández Tortosa
Дата:
Сообщение: Re: Repeatable read and serializable transactions see data committed after tx start