summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-15 11:42:51 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-15 11:42:51 +0000
commitb014474223f1e5304e6f1d3861ee5a26b4d62e44 (patch)
tree27d9106c6726271f2721036fe9f6b1ab59eb8811 /eval.c
parentb12a66055a29a3db3d9e9deda4d0867d0b837ea3 (diff)
downloadruby-b014474223f1e5304e6f1d3861ee5a26b4d62e44.tar.gz
ruby-b014474223f1e5304e6f1d3861ee5a26b4d62e44.tar.xz
ruby-b014474223f1e5304e6f1d3861ee5a26b4d62e44.zip
* class.c, error.c, eval.c, intern.h, object.c, variable.c:
do not set path if it is a singleton class. [ruby-dev:22588] (backport from 1.9) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 99856f3d1..d502b22ed 100644
--- a/eval.c
+++ b/eval.c
@@ -1142,7 +1142,7 @@ error_print()
else {
VALUE epath;
- epath = rb_class_path(eclass);
+ epath = rb_class_name(eclass);
if (elen == 0) {
warn_print(": ");
warn_print2(RSTRING(epath)->ptr, RSTRING(epath)->len);