diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-10-29 16:14:41 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-10-29 16:14:41 -0400 |
commit | b31de056a5b87c2aa58635871495c96de70859e6 (patch) | |
tree | 014411dd485e57c751035bdc02cb0b9c081f5028 /src/c/quikr_functions.c | |
parent | 8897d37c2b825016abe29688537d8fc5bf3daf11 (diff) |
update types for quikr_functions
Diffstat (limited to 'src/c/quikr_functions.c')
-rw-r--r-- | src/c/quikr_functions.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c index 60fe676..c99660b 100644 --- a/src/c/quikr_functions.c +++ b/src/c/quikr_functions.c @@ -35,9 +35,10 @@ unsigned long long count_sequences(const char *filename) { } -void normalize_matrix(double *matrix, long height, long width) { - long x = 0; - long y = 0; +void normalize_matrix(double *matrix, unsigned long long height, unsigned long long width) { + unsigned long long x = 0; + unsigned long long y = 0; + for(x = 0; x < height; x++) { double row_sum = 0; @@ -50,11 +51,11 @@ void normalize_matrix(double *matrix, long height, long width) { } -double *load_count_matrix(const char *filename, const long width, const int kmer) { +double *load_count_matrix(const char *filename, const unsigned long long width, const unsigned int kmer) { double *count_matrix = malloc(width*sizeof(double)); char count_command[1024]; - long x = 0; + unsigned long long x = 0; char *line = NULL; size_t len = 0; |