summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-22 10:42:15 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-22 10:42:15 +0000
commit280681f40c8f3096fd4d7766fb1818ae67437687 (patch)
tree66969f77ddcf0d84e8c2c7f3d120cca9f6c4f60d /ext/date
parent69d6a825ae87300af604d9306800d5998300d4f5 (diff)
downloadruby-280681f40c8f3096fd4d7766fb1818ae67437687.tar.gz
* ext/date/date_core.c: [ruby-core:47226].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index 762a0b7472..3a2fbb28d8 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -7976,7 +7976,7 @@ dt_new_by_frags(VALUE klass, VALUE hash, VALUE sg)
set_hash("min", INT2FIX(0));
if (NIL_P(ref_hash("sec")))
set_hash("sec", INT2FIX(0));
- else if (f_gt_p(ref_hash("sec"), INT2FIX(59)))
+ else if (f_eqeq_p(ref_hash("sec"), INT2FIX(60)))
set_hash("sec", INT2FIX(59));
}
else {