summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:07:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-09 02:07:50 +0000
commit812357230aa938062814d16cd15a2f1054cdff80 (patch)
tree0533ebd9984642547c1c9876466f09ed47d9ed9c
parentc22efd725fd81aeae85ac417922ec7b611b0c54c (diff)
downloadruby-812357230aa938062814d16cd15a2f1054cdff80.tar.gz
ruby-812357230aa938062814d16cd15a2f1054cdff80.tar.xz
ruby-812357230aa938062814d16cd15a2f1054cdff80.zip
* cont.c (cont_memsize): fixed wrong expression on IA64.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--cont.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f5ef8bb43..36dbcb07e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 9 11:07:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_memsize): fixed wrong expression on IA64.
+
Wed Sep 9 10:51:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* cont.c (cont_restore_1, rb_cont_call): should be Fiber.
diff --git a/cont.c b/cont.c
index 10a8df175..8fd9d89e6 100644
--- a/cont.c
+++ b/cont.c
@@ -148,8 +148,7 @@ cont_memsize(void *ptr)
}
#ifdef __ia64
if (cont->machine_register_stack) {
- size += (cont->machine_register_stack + cont->machine_register_stack_size) *
- sizeof(*cont->machine_register_stack);
+ size += cont->machine_register_stack_size * sizeof(*cont->machine_register_stack);
}
#endif
}