ruby-changes:19289
From: tadf <ko1@a...>
Date: Sun, 24 Apr 2011 02:51:48 +0900 (JST)
Subject: [ruby-changes:19289] Ruby:r31328 (trunk): * ext/date/date_parse.c: reverted.
tadf 2011-04-24 02:51:42 +0900 (Sun, 24 Apr 2011) New Revision: 31328 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31328 Log: * ext/date/date_parse.c: reverted. Modified files: trunk/ChangeLog trunk/ext/date/date_parse.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31327) +++ ChangeLog (revision 31328) @@ -1,3 +1,7 @@ +Sun Apr 24 02:51:06 2011 Tadayoshi Funaba <tadf@d...> + + * ext/date/date_parse.c: reverted. + Sun Apr 24 02:25:23 2011 NARUSE, Yui <naruse@r...> * include/ruby/intern.h: pcc can't use __builtin_constant_p. Index: ext/date/date_parse.c =================================================================== --- ext/date/date_parse.c (revision 31327) +++ ext/date/date_parse.c (revision 31328) @@ -918,7 +918,7 @@ { VALUE s1, s2, s3, s4, s5; const char *cs2, *cs3, *cs5; - int l2, l3, l4, l5; + long l2, l3, l4, l5; s1 = f_aref(m, INT2FIX(1)); s2 = f_aref(m, INT2FIX(2)); @@ -927,7 +927,7 @@ s5 = f_aref(m, INT2FIX(5)); cs2 = RSTRING_PTR(s2); - l2 = RSTRING_LENINT(s2); + l2 = RSTRING_LEN(s2); switch (l2) { case 2: @@ -1042,7 +1042,7 @@ } if (!NIL_P(s3)) { cs3 = RSTRING_PTR(s3); - l3 = RSTRING_LENINT(s3); + l3 = RSTRING_LEN(s3); if (!NIL_P(s4)) { switch (l3) { @@ -1072,7 +1072,7 @@ } } if (!NIL_P(s4)) { - l4 = RSTRING_LENINT(s4); + l4 = RSTRING_LEN(s4); set_hash("sec_fraction", rb_rational_new2(str2num(s4), @@ -1081,7 +1081,7 @@ if (!NIL_P(s5)) { VALUE zone_to_diff(VALUE s); cs5 = RSTRING_PTR(s5); - l5 = RSTRING_LENINT(s5); + l5 = RSTRING_LEN(s5); set_hash("zone", s5); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/