summaryrefslogtreecommitdiff
path: root/ext/dl/dl.c
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
commit3a86596df156d85ed58cd8e51b94d045021b731e (patch)
tree84e94e208c7961e6cf97cfd53fc02ca1b5947c17 /ext/dl/dl.c
parent0d572fc9b78d7f7e59f18cc80c700c06d2926809 (diff)
fixed rb_ary2cary() to convert nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-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 aad04f5a577..a05453bb1fb 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");
};