summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-13 10:28:25 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-13 10:28:25 +0000
commit7724d1363582b00a322e402e220737d313fe2c0b (patch)
treedcd2c41f158d08092ec3bc52e98ca98a1ddf3a7a /vm.c
parente79fbf3dfef38883a4173b4d1a58448343407f2f (diff)
downloadruby-7724d1363582b00a322e402e220737d313fe2c0b.tar.gz
* vm.c (ruby_vm_destruct): This function type was wrong; correct to the prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index 39debd5bf8..6fb6cd12c8 100644
--- a/vm.c
+++ b/vm.c
@@ -9,6 +9,7 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "ruby/vm.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
@@ -1519,11 +1520,10 @@ rb_vm_mark(void *ptr)
#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;