Rb_ary2cary in dl.c has a bug

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B

ext/dl/dl.c e$B$K%P%0$,$"$j$^$9!#e(B

$ svn diff dl.c
Index: dl.c

— dl.c (revision 12047)
+++ dl.c (working copy)
@@ -459,7 +459,7 @@
VALUE val0;

val0 = rb_check_array_type(v);

  • if(NIL_P(TYPE(val0))) {
  • if(NIL_P(val0)) {
    rb_raise(rb_eDLTypeError, “an array is expected.”);
    }
    v = val0;

e$B$=$l$G$O!#e(B

At Tue, 13 Mar 2007 22:03:18 +0900,
sheepman wrote:

VALUE val0;

val0 = rb_check_array_type(v);

  • if(NIL_P(TYPE(val0))) {
  • if(NIL_P(val0)) {
    rb_raise(rb_eDLTypeError, “an array is expected.”);
    }
    v = val0;

 ruby_1_8 に入れました。

卜部さん:
 ruby_1_8_? にもお願いします。


/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp

“Different eyes see different things,
Different hearts beat on different strings –
But there are times for you and me when all such things agree”