diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-06 08:59:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-06 08:59:24 +0000 |
commit | b7bc4706fa92d6e774ea7ca2e0f8929e360a50d1 (patch) | |
tree | d67443a30c8fe61edda4f0d1b835bcc5c22521c4 | |
parent | 2743b0d6082561a55c6a0d0843201f2413de93f3 (diff) | |
download | ruby-b7bc4706fa92d6e774ea7ca2e0f8929e360a50d1.tar.gz |
* vm_insnhelper.c (vm_push_frame): change type of stack_max to size_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm_insnhelper.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Aug 6 17:56:40 2013 Koichi Sasada <ko1@atdot.net> + + * vm_insnhelper.c (vm_push_frame): change type of stack_max to size_t. + Tue Aug 6 17:42:47 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> * range.c (range_last): exclude the last number of the exclusive range diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b4f2b83010..1d0b225dbd 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -41,13 +41,13 @@ vm_push_frame(rb_thread_t *th, VALUE *sp, int local_size, const rb_method_entry_t *me, - int stack_max) + size_t stack_max) { rb_control_frame_t *const cfp = th->cfp - 1; int i; /* check stack overflow */ - CHECK_VM_STACK_OVERFLOW0(cfp, sp, local_size + stack_max); + CHECK_VM_STACK_OVERFLOW0(cfp, sp, local_size + (int)stack_max); th->cfp = cfp; |