From 5dde558ce60db1f8747bbf745d56bd9cd5f4c7b7 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 12 Mar 1997 21:13:19 +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/tcop/fastpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/tcop/fastpath.c') diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index 611adb3a19f..20951fa4cb0 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.3 1996/11/08 05:59:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.4 1997/03/12 21:07:50 scrappy Exp $ * * NOTES * This cruft is the server side of PQfn. @@ -93,7 +93,7 @@ SendFunctionResult(Oid fid, /* function id */ pq_putnchar("G", 1); if (retbyval) { /* by-value */ pq_putint(retlen, 4); - pq_putint((int)retval, retlen); + pq_putint((int)(Datum)retval, retlen); } else { /* by-reference ... */ if (retlen < 0) { /* ... varlena */ pq_putint(VARSIZE(retval) - VARHDRSZ, 4); -- cgit v1.2.3