* src/cont.c: workaround for an amd64 gcc bug.

git-svn-id: svn://svn.zoy.org/elk/trunk@256 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2005-11-01 18:58:14 +00:00
parent 7bbd3cda52
commit 29930448d4
1 changed files with 2 additions and 1 deletions

View File

@ -114,8 +114,9 @@ int Check_Stack_Grows_Down () {
*/ */
unsigned int Stack_Size () { unsigned int Stack_Size () {
char foo; 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) { void Grow_Stack (struct S_Control *cp, Object val) {