[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: [YAML] Bignum problems
From: Caleb Tennis <caleb () aei-tech ! com>
Date: 2006-03-06 11:53:33
Message-ID: A2BDE3AF-96A3-44BA-B46E-5F689E10E912 () aei-tech ! com
[Download RAW message or body]
Joel,
If it's helpfuly, here's the small patch we've been using in Gentoo
that I believe fixes this:
--- ext/syck/rubyext.c 27 Sep 2005 22:57:52 -0000 1.30.2.15
+++ ext/syck/rubyext.c 5 Oct 2005 10:24:16 -0000
@@ -1142,6 +1142,9 @@
}
else if ( !NIL_P( target_class ) )
{
+ if (subclass == rb_cBignum)
+ obj = rb_str2inum(val, 10);
+ else
obj = rb_obj_alloc( subclass );
if ( rb_respond_to( obj, s_yaml_initialize ) )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic