summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 01:33:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 01:33:56 +0000
commitf86f18673849a61ee944abd9b5dff79325fe6ed8 (patch)
treeb478af1f9004c8789b0af93dc2856236c1d9964b /object.c
parentb6e956564620ee1d851e41c33dbf97dbcea5d80d (diff)
downloadruby-f86f18673849a61ee944abd9b5dff79325fe6ed8.tar.gz
ruby-f86f18673849a61ee944abd9b5dff79325fe6ed8.tar.xz
ruby-f86f18673849a61ee944abd9b5dff79325fe6ed8.zip
* object.c (rb_mod_freeze): call rb_class_name() directly.
[ruby-core:15802] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15702 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 f7d96e238..80bd1673c 100644
--- a/object.c
+++ b/object.c
@@ -1121,7 +1121,7 @@ rb_mod_to_s(VALUE klass)
static VALUE
rb_mod_freeze(VALUE mod)
{
- rb_mod_to_s(mod);
+ rb_class_name(mod);
return rb_obj_freeze(mod);
}