summaryrefslogtreecommitdiff
path: root/ext/dl/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 06:05:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 06:05:21 +0000
commit0cceff94ca29bed2d934a495f1a97041f46b2e76 (patch)
treeeb2b92156e458071a5d94e359fc041d2c831d55c /ext/dl/lib
parentf9ca2119e403653cdf529646d3a3790c5c473ac2 (diff)
* 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
Diffstat (limited to 'ext/dl/lib')
-rw-r--r--ext/dl/lib/dl/value.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb
index aa7e0dd325..bb8348cf5e 100644
--- a/ext/dl/lib/dl/value.rb
+++ b/ext/dl/lib/dl/value.rb
@@ -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