Skip to content

Commit 01ad1c9

Browse files
committed
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
1 parent 9ed87a7 commit 01ad1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/typecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,10 +1895,10 @@ makeMultirangeConstructors(const char *name, Oid namespace,
18951895
allParamTypes = ObjectIdGetDatum(rangeArrayOid);
18961896
allParameterTypes = construct_array(&allParamTypes,
18971897
1, OIDOID,
1898-
sizeof(Oid), true, 'i');
1898+
sizeof(Oid), true, TYPALIGN_INT);
18991899
paramModes = CharGetDatum(FUNC_PARAM_VARIADIC);
19001900
parameterModes = construct_array(&paramModes, 1, CHAROID,
1901-
1, true, 'c');
1901+
1, true, TYPALIGN_CHAR);
19021902
myself = ProcedureCreate(name, /* name: same as multirange type */
19031903
namespace,
19041904
false, /* replace */

0 commit comments

Comments
 (0)