diff options
Diffstat (limited to 'contrib/intarray/_int_gist.c')
-rw-r--r-- | contrib/intarray/_int_gist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/intarray/_int_gist.c b/contrib/intarray/_int_gist.c index 0123906be88..e429c8b58c9 100644 --- a/contrib/intarray/_int_gist.c +++ b/contrib/intarray/_int_gist.c @@ -106,7 +106,7 @@ g_int_union(PG_FUNCTION_ARGS) { GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0); int *size = (int *) PG_GETARG_POINTER(1); - int4 i, + int32 i, *ptr; ArrayType *res; int totlen = 0; @@ -128,7 +128,7 @@ g_int_union(PG_FUNCTION_ARGS) int nel; nel = ARRNELEMS(ent); - memcpy(ptr, ARRPTR(ent), nel * sizeof(int4)); + memcpy(ptr, ARRPTR(ent), nel * sizeof(int32)); ptr += nel; } @@ -317,8 +317,8 @@ g_int_same(PG_FUNCTION_ARGS) ArrayType *a = PG_GETARG_ARRAYTYPE_P(0); ArrayType *b = PG_GETARG_ARRAYTYPE_P(1); bool *result = (bool *) PG_GETARG_POINTER(2); - int4 n = ARRNELEMS(a); - int4 *da, + int32 n = ARRNELEMS(a); + int32 *da, *db; CHECKARRVALID(a); |