Skip to content

Commit

Permalink
Fix kt_for() declaration parameter types
Browse files Browse the repository at this point in the history
These were changed to long in 9d8c906 in 2014. Fixes lh3#411.
  • Loading branch information
jmarshall committed Mar 18, 2024
1 parent 139f68f commit 49e854e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bwamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 49e854e

Please sign in to comment.