summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 03:36:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 03:36:49 +0000
commitf7d72f1e6550af0571f15fb93327eb7c901fb104 (patch)
tree8c8b3ce8575b17c778a2ab67a2e893ac8af6d3b4 /object.c
parente585523a2b60a69befc1562fd4c79cfa688bb197 (diff)
precedes registering global VALUE variables before initializing it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 837e74c..d1a57bc 100644
--- a/object.c
+++ b/object.c
@@ -2753,8 +2753,8 @@ Init_Object()
rb_cData = rb_define_class("Data", rb_cObject);
rb_undef_alloc_func(rb_cData);
- ruby_top_self = rb_obj_alloc(rb_cObject);
rb_global_variable(&ruby_top_self);
+ ruby_top_self = rb_obj_alloc(rb_cObject);
rb_define_singleton_method(ruby_top_self, "to_s", main_to_s, 0);
rb_cTrueClass = rb_define_class("TrueClass", rb_cObject);