aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-02-01 18:19:47 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-02-01 18:19:47 -0500
commit86681f5b8ae298cc58f35e80c86746409b128abd (patch)
tree556d4220ec5c45a34e46c0c9556082d6009a3ff7
parentcf528ce64522746428b6c7ca0c72cd1d5fb168c2 (diff)
fix spacing
-rw-r--r--kmer_utils.c17
1 files 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