diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 11:37:41 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 11:37:41 +0000 |
| commit | 096845e09f2a41943d97bbab3bb58d171679eaa2 (patch) | |
| tree | 2da96933c7d0ba4d6cc44b41e143d323016d3241 /lib/prime.rb | |
| parent | 4cc4a7749c8d2fd72c0542c56977d9f89c01181c (diff) | |
merges r20859 from trunk into ruby_1_9_1.
* lib/optparse/version.rb: remove variable shadowing to stop
warning. [ruby-core:20612]
* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
lib/rinda/ring.rb, lib/racc/parser.rb,
lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
* lib/racc/parser.rb: remove space before parentheses.
* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
use parentheses around arguments.
* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
lib/yaml/baseemitter.rb: indentation fix.
* lib/matrix.rb: small cosmetic change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/prime.rb')
| -rw-r--r-- | lib/prime.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prime.rb b/lib/prime.rb index 0c60695c6..650d279bc 100644 --- a/lib/prime.rb +++ b/lib/prime.rb @@ -411,8 +411,8 @@ class Prime loop do extend_table until @table.length > i if !@table[i].zero? - (j...32).step(2) do |j| - return 32*i+j if !@table[i][j.div(2)].zero? + (j...32).step(2) do |k| + return 32*i+k if !@table[i][k.div(2)].zero? end end i += 1; j = 1 |
