summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 15:19:53 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 15:19:53 +0000
commit1c9a3e6eb8cca1e61c1f1d4bb4152321abf9ccb5 (patch)
treefd3d23642875e95cd26a181a473882935f171d4f /ext
parente60ec9551caa0c715b389bf94b46be93d47b7f5c (diff)
merge revision(s) r45520: [Backport #9706]
* ext/date/date_core.c (d_lite_cmp): should compare with #<. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 176c76ef0c..6e5c79a494 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -6306,7 +6306,7 @@ d_lite_cmp(VALUE self, VALUE other)
return INT2FIX(1);
}
}
- else if (a_nth < b_nth) {
+ else if (f_lt_p(a_nth, b_nth)) {
return INT2FIX(-1);
}
else {