summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:51:42 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:51:42 +0000
commit4116d8a3bd7d90aba6c2cc6a61a4968bba667d6f (patch)
tree9b7c0243b2febc1d0d46f653951d74114bedb03b
parent60aa9c809b58b214cba304b28f5813c8a7399a92 (diff)
* ext/date/date_parse.c: reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/date/date_parse.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7369093..7033ea6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Apr 24 02:51:06 2011 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * ext/date/date_parse.c: reverted.
+
Sun Apr 24 02:25:23 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/intern.h: pcc can't use __builtin_constant_p.
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
index 4527093..fd1dd65 100644
--- a/ext/date/date_parse.c
+++ b/ext/date/date_parse.c
@@ -918,7 +918,7 @@ parse_ddd_cb(VALUE m, VALUE hash)
{
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 @@ parse_ddd_cb(VALUE m, VALUE hash)
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 @@ parse_ddd_cb(VALUE m, VALUE hash)
}
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 @@ parse_ddd_cb(VALUE m, VALUE hash)
}
}
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 @@ parse_ddd_cb(VALUE m, VALUE hash)
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);