1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2013-08-06 08:59:24 +00:00
parent 2743b0d608
commit b7bc4706fa
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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;