Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kt_for() declaration parameter types #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading