summaryrefslogtreecommitdiffstats
path: root/ext/dl
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-05 13:11:29 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-05 13:11:29 +0000
commitdf1c4181931663813537c17fb696e0a7a59547f0 (patch)
tree84e94e208c7961e6cf97cfd53fc02ca1b5947c17 /ext/dl
parent2ea650c54779297d6977f9ab4c4b2066da7483d4 (diff)
downloadruby-df1c4181931663813537c17fb696e0a7a59547f0.tar.gz
ruby-df1c4181931663813537c17fb696e0a7a59547f0.tar.xz
ruby-df1c4181931663813537c17fb696e0a7a59547f0.zip
fixed rb_ary2cary() to convert nil.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/dl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index aad04f5a5..a05453bb1 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -487,6 +487,8 @@ rb_ary2cary(char t, VALUE v, long *size)
return (void*)c_parray(v,size);
};
rb_raise(rb_eDLTypeError, "type mismatch");
+ case T_NIL:
+ return (void*)c_parray(v, size);
default:
rb_raise(rb_eDLTypeError, "unsupported type");
};