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:
ttate 2002-11-05 13:11:29 +00:00
parent 0d572fc9b7
commit 3a86596df1
1 changed files with 2 additions and 0 deletions

View File

@ -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");
};