mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Consistently use PG_INT(16|32|64)_(MIN|MAX).
Per buildfarm animal woodlouse.
This commit is contained in:
@ -100,7 +100,7 @@ int2_dist(PG_FUNCTION_ARGS)
|
||||
int16 ra;
|
||||
|
||||
if (pg_sub_s16_overflow(a, b, &r) ||
|
||||
r == INT16_MIN)
|
||||
r == PG_INT16_MIN)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
|
||||
errmsg("smallint out of range")));
|
||||
|
Reference in New Issue
Block a user