summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--cont.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ebd4b8023d..c6d6c3b66a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 28 09:38:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * cont.c: typos.
+
Wed Jul 28 09:24:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
* cont.c: (RB_PAGE_SIZE): renamed from PAGE_SIZE. [ruby-dev:41870]
diff --git a/cont.c b/cont.c
index db2a5a81b3..503cc5f475 100644
--- a/cont.c
+++ b/cont.c
@@ -41,7 +41,7 @@
#include <unistd.h>
#include <sys/mman.h>
#include <ucontext.h>
-# clean cast warnings.endif
+#endif
#define RB_PAGE_SIZE (pagesize)
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
static long pagesize;
@@ -498,7 +498,7 @@ fiber_set_stack_location(void)
VALUE *ptr;
SET_MACHINE_STACK_END(&ptr);
- th->machine_stack_start = (void*)(((VALUE)ptr & PAGE_MASK) + STACK_UPPER(&ptr, 0, RB_PAGE_SIZE));
+ th->machine_stack_start = (void*)(((VALUE)ptr & RB_PAGE_MASK) + STACK_UPPER(&ptr, 0, RB_PAGE_SIZE));
}
static VOID CALLBACK