diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-12 21:00:17 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-12 21:00:17 +0000 |
commit | b66569e41fdecab3903fd8af6cbc8bb12ae653cd (patch) | |
tree | c5b8126c45e6779c5e14f7efa0bfb93652c135d4 /src/backend/access/gist/gistget.c | |
parent | 127826978a2c5ea25b20d7f06687609669323ab1 (diff) | |
download | postgresql-b66569e41fdecab3903fd8af6cbc8bb12ae653cd.tar.gz |
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] linux/alpha patches
These patches lay the groundwork for a Linux/Alpha port. The port doesn't
actually work unless you tweak the linker to put all the pointers in the
first 32 bits of the address space, but it's at least a start. It
implements the test-and-set instruction in Alpha assembly, and also fixes
a lot of pointer-to-integer conversions, which is probably good anyway.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
-rw-r--r-- | src/backend/access/gist/gistget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c index afd34be144..1b424f9d28 100644 --- a/src/backend/access/gist/gistget.c +++ b/src/backend/access/gist/gistget.c @@ -250,14 +250,14 @@ gistindex_keytest(IndexTuple tuple, } if (key[0].sk_flags & SK_COMMUTE) { - test = (int) (*(key[0].sk_func)) + test = (*(key[0].sk_func)) (DatumGetPointer(key[0].sk_argument), - &de, key[0].sk_procedure); + &de, key[0].sk_procedure) ? 1 : 0; } else { - test = (int) (*(key[0].sk_func)) + test = (*(key[0].sk_func)) (&de, DatumGetPointer(key[0].sk_argument), - key[0].sk_procedure); + key[0].sk_procedure) ? 1 : 0; } if (!test == !(key[0].sk_flags & SK_NEGATE)) { |