aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/bm_so_sieve.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-15 12:53:12 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-15 12:53:12 +0000
commita17cb167ea5e0f0690a94d8f39b821a43aebd456 (patch)
treeb7c28180ea5d7d5bc428269e0eff8497756dc78a /benchmark/bm_so_sieve.rb
parent2780e752edac13439b14033b653588a511b8e111 (diff)
downloadruby-a17cb167ea5e0f0690a94d8f39b821a43aebd456.tar.gz
* benchmark/: add missing spaces around assignment operators (= and +=) for
consistency. Approved by ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_so_sieve.rb')
-rw-r--r--benchmark/bm_so_sieve.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bm_so_sieve.rb b/benchmark/bm_so_sieve.rb
index 3f1b138bd1..43dc302648 100644
--- a/benchmark/bm_so_sieve.rb
+++ b/benchmark/bm_so_sieve.rb
@@ -4,12 +4,12 @@ count = i = j = 0
flags0 = Array.new(8192,1)
k = 0
while k < num
- k+=1
+ k += 1
count = 0
flags = flags0.dup
i = 2
while i<8192
- i+=1
+ i += 1
if flags[i]
# remove all multiples of prime: i
j = i*i