Permalink
Browse files

Style changes

  • Loading branch information...
1 parent 8a59816 commit b0a1dd11551eae4ac780ef277f1f54d07e99a6c7 @joshuaclayton committed Oct 8, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 ext/sieve/sieve.c
View
@@ -32,16 +32,12 @@ static VALUE sieve(const VALUE self) {
if(current_square > number) { break; }
long n;
- for(n = current_square; n < number; n += i) {
- CLEARBIT(results, n);
- }
+ for(n = current_square; n < number; n += i) { CLEARBIT(results, n); }
}
VALUE primes_array = rb_ary_new();
for(i = 0; i < number; i++) {
- if(BITSET(results, i)) {
- rb_ary_push(primes_array, LONG2FIX(i));
- }
+ if(BITSET(results, i)) { rb_ary_push(primes_array, LONG2FIX(i)); }
}
free(results);

0 comments on commit b0a1dd1

Please sign in to comment.