mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +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:
@@ -271,7 +271,7 @@ pushValue_internal(TSQueryParserState state, pg_crc32 valcrc, int distance, int
|
||||
* of the string.
|
||||
*/
|
||||
void
|
||||
pushValue(TSQueryParserState state, char *strval, int lenval, int2 weight, bool prefix)
|
||||
pushValue(TSQueryParserState state, char *strval, int lenval, int16 weight, bool prefix)
|
||||
{
|
||||
pg_crc32 valcrc;
|
||||
|
||||
|
Reference in New Issue
Block a user