From 29930448d4a78b8a38e3ddeb67a467420f856a96 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 1 Nov 2005 18:58:14 +0000 Subject: [PATCH] * src/cont.c: workaround for an amd64 gcc bug. git-svn-id: svn://svn.zoy.org/elk/trunk@256 55e467fa-43c5-0310-a8a2-de718669efc6 --- src/cont.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cont.c b/src/cont.c index 2033d8c..9a30775 100644 --- a/src/cont.c +++ b/src/cont.c @@ -114,8 +114,9 @@ int Check_Stack_Grows_Down () { */ unsigned int Stack_Size () { char foo; + char *pfoo; - return Stack_Grows_Down ? stkbase-&foo : &foo-stkbase; + return Stack_Grows_Down ? stkbase-pfoo : pfoo-stkbase; } void Grow_Stack (struct S_Control *cp, Object val) {