[Win32utils-devel] RARRAY_LEN weirdness

Daniel Berger djberg96 at gmail.com
Thu Aug 22 13:52:29 UTC 2013


That is very strange. I won't even pretend to understand the reasoning
behind it.

Thanks,

Dan


On Thu, Aug 22, 2013 at 1:15 AM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 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:
> https://bugs.ruby-lang.org/issues/7982
>
> Regards,
> Park Heesob
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130822/3ef3cdf6/attachment.html>


More information about the win32utils-devel mailing list