From d5af45885f76e74df4ac8d80b67d138a3a491784 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 4 Mar 2014 15:30:02 -0500 Subject: update kmer_counts_per_sequence to work with c++ --- kmer_counts_per_sequence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kmer_counts_per_sequence.c') diff --git a/kmer_counts_per_sequence.c b/kmer_counts_per_sequence.c index 2b95ed1..925130c 100644 --- a/kmer_counts_per_sequence.c +++ b/kmer_counts_per_sequence.c @@ -130,7 +130,7 @@ int main(int argc, char **argv) { if(specific_mers) { sparse = false; - desired_indicies = malloc((width) * sizeof(size_t)); + desired_indicies = (size_t *) malloc((width) * sizeof(size_t)); if(desired_indicies == NULL) exit(EXIT_FAILURE); num_desired_indicies = load_specific_mers_from_file(mer_fn, kmer, width, desired_indicies); @@ -141,7 +141,7 @@ int main(int argc, char **argv) { } - unsigned long long *counts = malloc((width+ 1) * sizeof(unsigned long long)); + unsigned long long *counts = (unsigned long long *) malloc((width+ 1) * sizeof(unsigned long long)); if(counts == NULL) exit(EXIT_FAILURE); -- cgit v1.2.3