diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-21 04:39:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-21 04:39:32 +0000 |
commit | 3118c4c46e829e5d1dfcd57c45807b9ff64db8f0 (patch) | |
tree | 41e7190d12da74b21fecec38da899a57d7d20622 /compar.c | |
parent | dafeb23e995ca54268903badb3c37b9ed23a5ae1 (diff) | |
download | ruby-3118c4c46e829e5d1dfcd57c45807b9ff64db8f0.tar.gz |
compar.c: use Module#to_s
* compar.c (rb_cmperr): use Module#to_s so that names in a message
can be overridden by to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compar.c')
-rw-r--r-- | compar.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,10 +24,10 @@ rb_cmperr(VALUE x, VALUE y) classname = rb_inspect(y); } else { - classname = rb_class_path(rb_obj_class(y)); + classname = rb_obj_class(y); } rb_raise(rb_eArgError, "comparison of %"PRIsVALUE" with %"PRIsVALUE" failed", - rb_class_path(rb_obj_class(x)), classname); + rb_obj_class(x), classname); } static VALUE |