ruby-changes:8932
From: nobu <ko1@a...>
Date: Wed, 3 Dec 2008 22:41:23 +0900 (JST)
Subject: [ruby-changes:8932] Ruby:r20468 (trunk): * iseq.c (simple_default_value): returns simplest assignment only.
nobu 2008-12-03 22:41:01 +0900 (Wed, 03 Dec 2008) New Revision: 20468 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20468 Log: * iseq.c (simple_default_value): returns simplest assignment only. [ruby-core:20237] Modified files: trunk/ChangeLog trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20467) +++ ChangeLog (revision 20468) @@ -1,3 +1,8 @@ +Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@r...> + + * iseq.c (simple_default_value): returns simplest assignment only. + [ruby-core:20237] + Wed Dec 3 21:30:06 2008 Tanaka Akira <akr@f...> * process.c (check_exec_redirect): accept :in, :out, :err as redirect Index: iseq.c =================================================================== --- iseq.c (revision 20467) +++ iseq.c (revision 20468) @@ -1292,13 +1292,12 @@ got: switch (*seq++) { case BIN(setlocal): - if ((seq+=1) != eseq) return Qundef; + if ((seq+=1) == eseq) return val; break; case BIN(setdynamic): - if ((seq+=2) != eseq) return Qundef; + if ((seq+=2) == eseq) return val; break; } - return val; default: return Qundef; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/