From: John Naylor Date: Wed, 16 Feb 2022 12:33:28 +0000 (+0700) Subject: Add missing TYPEALIGN macros X-Git-Tag: REL_15_BETA1~682 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=01ad1c953032ea2b88893d6a2f50fb4a8fea2873;p=postgresql.git Add missing TYPEALIGN macros A couple call sites still had hard-coded characters. Amul Sul Discussion: https://www.postgresql.org/message-id/CAAJ_b94Y35MWB3PJoCbc_O-_Q4%2B-9DHKhWtAwboEyx8wm4mqcA%40mail.gmail.com --- diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 053d1547532..9b92b042420 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -1895,10 +1895,10 @@ makeMultirangeConstructors(const char *name, Oid namespace, allParamTypes = ObjectIdGetDatum(rangeArrayOid); allParameterTypes = construct_array(&allParamTypes, 1, OIDOID, - sizeof(Oid), true, 'i'); + sizeof(Oid), true, TYPALIGN_INT); paramModes = CharGetDatum(FUNC_PARAM_VARIADIC); parameterModes = construct_array(¶mModes, 1, CHAROID, - 1, true, 'c'); + 1, true, TYPALIGN_CHAR); myself = ProcedureCreate(name, /* name: same as multirange type */ namespace, false, /* replace */