diff --git a/ChangeLog b/ChangeLog index 6a6dce5844..ced20623db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jul 26 23:03:53 2002 Nobuyoshi Nakada + + * eval.c (rb_eval): no need to convert to string twice. + Fri Jul 26 18:32:37 2002 Nobuyoshi Nakada * misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers diff --git a/eval.c b/eval.c index 30aa9fca90..25660fdcef 100644 --- a/eval.c +++ b/eval.c @@ -3074,6 +3074,7 @@ rb_eval(self, n) break; case NODE_EVSTR: + ruby_sourceline = nd_line(node); result = rb_obj_as_string(rb_eval(self, node->nd_body)); break; @@ -3093,8 +3094,7 @@ rb_eval(self, n) str2 = list->nd_head->nd_lit; break; default: - ruby_sourceline = nd_line(list->nd_head); - str2 = rb_obj_as_string(rb_eval(self, list->nd_head)); + str2 = rb_eval(self, list->nd_head); break; } rb_str_append(str, str2);