[Win32utils-devel] RARRAY_LEN weirdness

Heesob Park phasis at gmail.com
Thu Aug 22 07:15:03 UTC 2013


2013/8/22 Daniel Berger <djberg96 at gmail.com>:
> Does anyone have any idea why this is choking on Ruby 2.x?
> https://gist.github.com/djberg96/6303793
> It works as expected with 1.9.x.
> Originally I was trying to figure out why it was reporting the wrong number
> of arguments in an error message, but now I'm getting segfaults on Ruby 2.x.
RARRAY_LEN is not related with the segfaults.
The segfault is due to %li format.

You can't use %i or variations of int with the fmt string message on Ruby 2.x.

The whole story is here:

Park Heesob

More information about the win32utils-devel mailing list