summaryrefslogtreecommitdiff
path: root/numeric.rb
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.rb')
-rw-r--r--numeric.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.rb b/numeric.rb
index f026679210..0a1f14865f 100644
--- a/numeric.rb
+++ b/numeric.rb
@@ -278,7 +278,7 @@ class Integer
#
# 3.ceildiv(1.2) # => 3
def ceildiv(other)
- -div(-other)
+ -div(0 - other)
end
#