mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f9ca2119e4
commit
0cceff94ca
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
Tue Mar 3 15:03:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Mar 3 15:05:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
|
||||
|
||||
* test/dl: moved from ext/dl/test.
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ module DL
|
|||
def wrap_arg(arg, ty, funcs, &block)
|
||||
funcs ||= []
|
||||
case arg
|
||||
when nil
|
||||
return 0
|
||||
when CPtr
|
||||
return arg.to_i
|
||||
when IO
|
||||
|
|
Loading…
Add table
Reference in a new issue