From b66569e41fdecab3903fd8af6cbc8bb12ae653cd Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 12 Mar 1997 21:00:17 +0000 Subject: From: Dan McGuirk 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. --- src/backend/access/gist/gistget.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/access/gist/gistget.c') 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)) { -- cgit v1.2.1