mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Replace int2/int4 in C code with int16/int32
The latter was already the dominant use, and it's preferable because in C the convention is that intXX means XX bits. Therefore, allowing mixed use of int2, int4, int8, int16, int32 is obviously confusing. Remove the typedefs for int2 and int4 for now. They don't seem to be widely used outside of the PostgreSQL source tree, and the few uses can probably be cleaned up by the time this ships.
This commit is contained in:
@ -4713,8 +4713,8 @@ array_smaller(PG_FUNCTION_ARGS)
|
||||
|
||||
typedef struct generate_subscripts_fctx
|
||||
{
|
||||
int4 lower;
|
||||
int4 upper;
|
||||
int32 lower;
|
||||
int32 upper;
|
||||
bool reverse;
|
||||
} generate_subscripts_fctx;
|
||||
|
||||
|
Reference in New Issue
Block a user