From 86681f5b8ae298cc58f35e80c86746409b128abd Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 1 Feb 2014 18:19:47 -0500 Subject: fix spacing --- kmer_utils.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/kmer_utils.c b/kmer_utils.c index e557e4a..c3ed028 100644 --- a/kmer_utils.c +++ b/kmer_utils.c @@ -27,22 +27,21 @@ unsigned long long pow_four(unsigned long long x) { // base-10 index inline unsigned long num_to_index(const char *str, const int kmer, const long error_pos, long long *current_position) { - int i = 0; - unsigned long out = 0; - unsigned long multiply = 1; - - for(i = kmer - 1; i >= 0; i--){ + int i = 0; + unsigned long out = 0; + unsigned long multiply = 1; + for(i = kmer - 1; i >= 0; i--){ if(str[i] == 5) { current_position += i; return error_pos; } - out += str[i] * multiply; - multiply = multiply << 2; - } + out += str[i] * multiply; + multiply = multiply << 2; + } - return out; + return out; } // return the number of loaded elements -- cgit v1.2.3