diff options
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/hash/hashfunc.c | 4 | ||||
-rw-r--r-- | src/backend/access/nbtree/nbtcompare.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/hash/hashfunc.c b/src/backend/access/hash/hashfunc.c index e3187777009..3b64450707c 100644 --- a/src/backend/access/hash/hashfunc.c +++ b/src/backend/access/hash/hashfunc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.21 2000/01/10 16:13:10 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/hash/hashfunc.c,v 1.22 2000/01/10 17:14:28 momjian Exp $ * * NOTES * These functions are stored in pg_amproc. For each operator class @@ -145,7 +145,7 @@ hashoidvector(Oid *key) int i; uint32 result = 0; - for (i = 0; i < 8; i++) + for (i = 0; i < INDEX_MAX_KEYS; i++) result = result ^ (~(uint32) key[i]); return result; } diff --git a/src/backend/access/nbtree/nbtcompare.c b/src/backend/access/nbtree/nbtcompare.c index 57c3f981a37..fd84db3e5cb 100644 --- a/src/backend/access/nbtree/nbtcompare.c +++ b/src/backend/access/nbtree/nbtcompare.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.29 2000/01/10 16:13:10 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.30 2000/01/10 17:14:29 momjian Exp $ * * NOTES * These functions are stored in pg_amproc. For each operator class @@ -98,7 +98,7 @@ btoidvectorcmp(Oid *a, Oid *b) { int i; - for (i = 0; i < 8; i++) + for (i = 0; i < INDEX_MAX_KEYS; i++) /* we use this because we need the int4gt, etc */ if (!int4eq(a[i], b[i])) { |