Skip to content

Commit

Permalink
Use platform independent fixnum_max
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch authored and brixen committed Jan 15, 2012
1 parent 3f4d192 commit 7884a96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/float/round_spec.rb
Expand Up @@ -23,7 +23,7 @@
123456.78.round(-2).should eql(123500) # rounded up
-123456.78.round(-2).should eql(-123500)
12.345678.round(3.999).should == 12.346
0.8346268.round(-2.0**30).should eql(0)
0.8346268.round(-fixnum_max).should eql(0)
end

it "raises a TypeError when its argument can not be converted to an Integer" do
Expand Down
2 changes: 1 addition & 1 deletion core/integer/round_spec.rb
Expand Up @@ -32,7 +32,7 @@

ruby_bug "redmine #5271", "1.9.3" do
it "returns 0 if passed a big negative value" do
42.round(-2**30).should eql(0)
42.round(-fixnum_max).should eql(0)
end
end

Expand Down

0 comments on commit 7884a96

Please sign in to comment.