mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bugfix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f281abc9d1
commit
e849cce8a0
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ module DL
|
|||
"def #{name}",
|
||||
" v = @ptr[\"#{name}\"]",
|
||||
" if( @len[\"#{name}\"] )",
|
||||
" v = v.collect{|x| @dec[\"#{name}\"].call(x) if @dec[\"#{name}\"] }",
|
||||
" v = v.collect{|x| @dec[\"#{name}\"] ? @dec[\"#{name}\"].call(x) : x }",
|
||||
" else",
|
||||
" v = @dec[\"#{name}\"].call(v) if @dec[\"#{name}\"]",
|
||||
" end",
|
||||
|
@ -41,7 +41,7 @@ module DL
|
|||
"end",
|
||||
"def #{name}=(v)",
|
||||
" if( @len[\"#{name}\"] )",
|
||||
" v = v.collect{|x| @enc[\"#{name}\"].call(x) if @enc[\"#{name}\"] }",
|
||||
" v = v.collect{|x| @enc[\"#{name}\"] ? @enc[\"#{name}\"].call(x) : x }",
|
||||
" else",
|
||||
" v = @enc[\"#{name}\"].call(v) if @enc[\"#{name}\"]",
|
||||
" end",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue