зеркало из https://github.com/github/ruby.git
* eval.c (rb_eval): no need to convert to string twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5384316f5b
Коммит
ce84517f2c
|
@ -1,3 +1,7 @@
|
|||
Fri Jul 26 23:03:53 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* eval.c (rb_eval): no need to convert to string twice.
|
||||
|
||||
Fri Jul 26 18:32:37 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers
|
||||
|
|
4
eval.c
4
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче