diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/tst-setcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-setcontext.c b/stdlib/tst-setcontext.c index 1b51170..1c2925b 100644 --- a/stdlib/tst-setcontext.c +++ b/stdlib/tst-setcontext.c @@ -58,7 +58,7 @@ f2 (void) puts ("start f2"); printf ("&on_stack=%p\n", on_stack); - if (on_stack < st2 || on_stack >= st2 + sizeof (st2)) + if (&on_stack[0] < &st2[0] || &on_stack[0] >= st2 + sizeof (st2)) { printf ("%s: memory stack is not where it belongs!", __FUNCTION__); exit (1); |