summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 23:45:05 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-31 23:45:05 +0000
commit08ba6b3f36c513c249d743a9fd6848d5b032ab14 (patch)
tree4711176a45edef6c6060888c8a5fc1c845f0e150 /lib/date.rb
parent655e3143b35387d1e365789bf7da0454fd1947ec (diff)
merge revision(s) 15084:
* lib/date.rb (Date::Infinity#<=>): didn't work. A patch from Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098]. This is a bug obviously. However it didn't affect the library's functions. * lib/date.rb, lib/date/format.rb: some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@21222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb
index 10d8c94ae3..0dfe1bb06e 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -275,8 +275,8 @@ class Date
def <=> (other)
case other
- when Infinity; d <=> other.d
- when Numeric; d
+ when Infinity; return d <=> other.d
+ when Numeric; return d
else
begin
l, r = other.coerce(self)