Fix the stack direction check again

Turns out I got it wrong.
This commit is contained in:
Matthias Clasen 2013-11-23 21:09:32 -05:00
parent 341c0b1988
commit 698393f15d

View File

@ -597,7 +597,7 @@ AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
AC_TRY_RUN([
volatile int *a = 0, *b = 0;
void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); }
int main () { volatile int y = 7; a = &y; f (100); return b > a; }
int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; }
],
glib_cv_stack_grows=yes
,