fixed rb_ary2cary() to convert nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d572fc9b7
commit
3a86596df1
|
@ -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");
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue