aboutsummaryrefslogtreecommitdiff
path: root/contrib/intarray/_int_tool.c
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2005-11-14 16:11:37 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2005-11-14 16:11:37 +0000
commit08ee64ebf5e5495c3660a2c9f278a3bf3e60b853 (patch)
tree56f8d09dd31444328fede61851af57637fdc9f19 /contrib/intarray/_int_tool.c
parentbad1a5c217c3d363363d9ccd9656aa0a770d16a9 (diff)
downloadpostgresql-08ee64ebf5e5495c3660a2c9f278a3bf3e60b853.tar.gz
postgresql-08ee64ebf5e5495c3660a2c9f278a3bf3e60b853.zip
Remove usage of ArrayType->flags field, use pgsql's macros BITS_PER_BYTE instead
of self-defined macros, add limit of Array to gist__int_ops. BTW, intarray now doesn't support NULLs in arrays.
Diffstat (limited to 'contrib/intarray/_int_tool.c')
-rw-r--r--contrib/intarray/_int_tool.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/intarray/_int_tool.c b/contrib/intarray/_int_tool.c
index 216a4105c7f..a3399874ada 100644
--- a/contrib/intarray/_int_tool.c
+++ b/contrib/intarray/_int_tool.c
@@ -215,7 +215,6 @@ new_intArrayType(int num)
ARR_SIZE(r) = nbytes;
ARR_NDIM(r) = NDIM;
ARR_ELEMTYPE(r) = INT4OID;
- r->flags &= ~LEAFKEY;
*((int *) ARR_DIMS(r)) = num;
*((int *) ARR_LBOUND(r)) = 1;