1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mathn.rb (Integer::prime_division): raise ZeroDivisionError

on zeros.  [ruby-dev:28739]

* version.h: 1.8.5 - prepare for preview1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-06-19 15:08:14 +00:00
parent f36b7d8fd5
commit eb41c8d2e3
3 changed files with 9 additions and 0 deletions

View file

@ -43,6 +43,7 @@ class Integer
end
def prime_division
raise ZeroDivisionError if self == 0
ps = Prime.new
value = self
pv = []