aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-04 15:30:02 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-04 15:30:02 -0500
commitd5af45885f76e74df4ac8d80b67d138a3a491784 (patch)
tree08aef76417534f0e83394c26d0e455cba266824b
parent9769350e545f44d19f0a3c676ced157b5e76cd36 (diff)
update kmer_counts_per_sequence to work with c++
-rw-r--r--kmer_counts_per_sequence.c4
1 files changed, 2 insertions, 2 deletions
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);