>>>>> "Kyotaro" == Kyotaro HORIGUCHI <horiguchi.kyot...@lab.ntt.co.jp> writes:
Kyotaro> Hello, Kyotaro> Grep showed me some unfixed usages of bare constant or Kyotaro> 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.c Kyotaro> ./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) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers