ruby-changes:17477
From: shyouhei <ko1@a...>
Date: Wed, 13 Oct 2010 19:30:57 +0900 (JST)
Subject: [ruby-changes:17477] Ruby:r29482 (trunk): * vm.c (ruby_vm_destruct): This function type was wrong; correct to the prototype.
shyouhei 2010-10-13 19:28:25 +0900 (Wed, 13 Oct 2010) New Revision: 29482 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29482 Log: * vm.c (ruby_vm_destruct): This function type was wrong; correct to the prototype. Modified files: trunk/ChangeLog trunk/vm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29481) +++ ChangeLog (revision 29482) @@ -1,3 +1,7 @@ +Wed Oct 13 19:24:08 2010 URABE Shyouhei <shyouhei@r...> + + * vm.c (ruby_vm_destruct): This function type was wrong; correct to the prototype. + Wed Oct 13 14:58:09 2010 NARUSE, Yui <naruse@r...> * numeric.c (rb_num_to_uint): fix 32bit logic. Index: vm.c =================================================================== --- vm.c (revision 29481) +++ vm.c (revision 29482) @@ -9,6 +9,7 @@ **********************************************************************/ #include "ruby/ruby.h" +#include "ruby/vm.h" #include "ruby/st.h" #include "ruby/encoding.h" @@ -1519,11 +1520,10 @@ #define vm_free 0 int -ruby_vm_destruct(void *ptr) +ruby_vm_destruct(rb_vm_t *vm) { RUBY_FREE_ENTER("vm"); - if (ptr) { - rb_vm_t *vm = ptr; + if (vm) { rb_thread_t *th = vm->main_thread; #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE struct rb_objspace *objspace = vm->objspace; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/