From 2aa4254c4368fd85ca6d37e17c786eb295a79c5a Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 4 Mar 2014 14:01:24 -0500 Subject: fix warnings --- src/c/multifasta_to_otu.c | 2 +- src/c/quikr_functions.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c index 930e345..7513b11 100644 --- a/src/c/multifasta_to_otu.c +++ b/src/c/multifasta_to_otu.c @@ -348,7 +348,7 @@ int main(int argc, char **argv) { } done++; - printf("%ld/%ld samples processed\n", done, dir_count); + printf("%ld/%llu samples processed\n", done, dir_count); free(solution); free(full_filename); free(count_matrix_rare); diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c index fa97440..178c1d1 100644 --- a/src/c/quikr_functions.c +++ b/src/c/quikr_functions.c @@ -93,7 +93,7 @@ struct matrix *load_sensing_matrix(const char *filename, unsigned int target_kme double *matrix = NULL; - int kmer = 0; + unsigned int kmer = 0; unsigned long long i = 0; unsigned long long *row = NULL; @@ -142,6 +142,7 @@ struct matrix *load_sensing_matrix(const char *filename, unsigned int target_kme fprintf(stderr, "Error parsing sensing matrix, kmer is zero\n"); exit(EXIT_FAILURE); } + if(kmer != target_kmer) { fprintf(stderr, "The sensing_matrix was trained with a different kmer than your requested kmer\n"); exit(EXIT_FAILURE); -- cgit v1.2.3