From 49e854eff63cdf9c4e1b93976d7583b25b993bee Mon Sep 17 00:00:00 2001 From: John Marshall Date: Mon, 18 Mar 2024 23:26:12 +1300 Subject: [PATCH] Fix kt_for() declaration parameter types These were changed to long in 9d8c906 in 2014. Fixes #411. --- bwamem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bwamem.c b/bwamem.c index 03e2a059..1add4867 100644 --- a/bwamem.c +++ b/bwamem.c @@ -1200,7 +1200,7 @@ typedef struct { int64_t n_processed; } worker_t; -static void worker1(void *data, int i, int tid) +static void worker1(void *data, long i, int tid) { worker_t *w = (worker_t*)data; if (!(w->opt->flag&MEM_F_PE)) { @@ -1214,7 +1214,7 @@ static void worker1(void *data, int i, int tid) } } -static void worker2(void *data, int i, int tid) +static void worker2(void *data, long i, int tid) { extern int mem_sam_pe(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, const mem_pestat_t pes[4], uint64_t id, bseq1_t s[2], mem_alnreg_v a[2]); extern void mem_reg2ovlp(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, bseq1_t *s, mem_alnreg_v *a); @@ -1234,7 +1234,7 @@ static void worker2(void *data, int i, int tid) void mem_process_seqs(const mem_opt_t *opt, const bwt_t *bwt, const bntseq_t *bns, const uint8_t *pac, int64_t n_processed, int n, bseq1_t *seqs, const mem_pestat_t *pes0) { - extern void kt_for(int n_threads, void (*func)(void*,int,int), void *data, int n); + extern void kt_for(int n_threads, void (*func)(void*,long,int), void *data, long n); worker_t w; mem_pestat_t pes[4]; double ctime, rtime;