ruby-changes:33282
From: sorah <ko1@a...>
Date: Tue, 18 Mar 2014 23:22:33 +0900 (JST)
Subject: [ruby-changes:33282] sorah:r45361 (trunk): * vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
sorah 2014-03-18 23:22:23 +0900 (Tue, 18 Mar 2014) New Revision: 45361 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45361 Log: * vm_eval.c (eval_string_with_cref): Unify to use NIL_P. Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45360) +++ ChangeLog (revision 45361) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Mar 18 23:20:12 2014 Shota Fukumori <her@s...> + + * vm_eval.c (eval_string_with_cref): Unify to use NIL_P. + Tue Mar 18 22:03:41 2014 Shota Fukumori <her@s...> * vm_eval.c (eval_string_with_cref): Use file path even if scope is Index: vm_eval.c =================================================================== --- vm_eval.c (revision 45360) +++ vm_eval.c (revision 45361) @@ -1223,7 +1223,7 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1223 bind = Check_TypedStruct(scope, &ruby_binding_data_type); { envval = bind->env; - if (absolute_path == Qnil && !NIL_P(bind->path)) { + if (NIL_P(absolute_path) && !NIL_P(bind->path)) { file = bind->path; line = bind->first_lineno; absolute_path = rb_current_realfilepath(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/