mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (simple_default_value): returns simplest assignment only.
[ruby-core:20237] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca209c80e9
commit
6e0f413f01
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* iseq.c (simple_default_value): returns simplest assignment only.
|
||||
[ruby-core:20237]
|
||||
|
||||
Wed Dec 3 21:30:06 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (check_exec_redirect): accept :in, :out, :err as redirect
|
||||
|
|
5
iseq.c
5
iseq.c
|
@ -1292,13 +1292,12 @@ simple_default_value(const VALUE *seq, const VALUE *eseq)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue