summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 07:14:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 07:14:28 +0000
commite3cd29bc634381f198f1d3d4d445dd658986098a (patch)
tree2bbec1f583a443b10712977054145427802ec6a7 /lib
parent4ee699999d448d18f84df6e8031253df504ec2bf (diff)
* ext/socket/socket.c (unix_sysaccept): typo fixed.
* ext/socket/socket.c (sock_connect): remove an unused local variable tmpaddr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mathn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 3dea0afec1..84c0b4704d 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -25,6 +25,7 @@ class Integer
end
def prime_division
+ raise ZeroDivisionError if self == 0
ps = Prime.new
value = self
pv = []