diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | array.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Sat Nov 24 12:28:04 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com> + + * array.c (rb_ary_aref): fix Segmentation fault at TestArray#test_aref + on x64 mingw. Variable argument of rb_scan_args() should be a pointer + (VALUE *), but 0 of variable argument seems not equal to null pointer + on x64 mingw. + Sat Nov 24 12:12:41 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com> * gc.c (wmap_final_func): rename variables to clarify the meaning. @@ -1174,7 +1174,7 @@ rb_ary_aref(int argc, VALUE *argv, VALUE ary) return rb_ary_subseq(ary, beg, len); } if (argc != 1) { - rb_scan_args(argc, argv, "11", 0, 0); + rb_scan_args(argc, argv, "11", NULL, NULL); } arg = argv[0]; /* special case - speeding up */ |