From 8706c00dfd65ae6c78f6fdac3688b224925c8d49 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Jun 2012 08:54:38 +0000 Subject: gc.h: IS_STACK_DIR_UPPER * gc.h (IS_STACK_DIR_UPPER): utility macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 0a37f2fa30..383d41b732 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1342,7 +1342,7 @@ ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr) } size /= 5; if (size > water_mark) size = water_mark; - if (STACK_DIR_UPPER(1, 0)) { + if (IS_STACK_DIR_UPPER()) { if (size > ~(size_t)base+1) size = ~(size_t)base+1; if (addr > base && addr <= (void *)((char *)base + size)) return 1; } -- cgit v1.2.3