Skip to content
Snippets Groups Projects
Commit 8b09684c authored by Veronique Legrand's avatar Veronique Legrand
Browse files

added check of affset2 against offset1 : make sure that diveded by MAX_INT...

added check of affset2 against offset1 : make sure that diveded by MAX_INT they both give the same j value.
parent 397d0bb0
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ void FqMainBackend::processBuf(char * buf,int nread,unsigned char f_id,unsigned
#ifdef DEBUG
cout<<"nread="<<nread<<endl;
cout<<"cnt="<<cnt<<endl;
cout<<"rstart_offset="<<rstart_offset<<endl;
cout<<"rstart_offset="<<rstart_offset<<endl;
is_id=1;
idx_id=0;
nb_start++;
......@@ -136,6 +136,7 @@ void FqMainBackend::processBuf(char * buf,int nread,unsigned char f_id,unsigned
// if (eof) cout<<"warning, reached eof in file PE2 after: "<<nb_read_PE1<<" reads in PE1"<<endl;
st+=pe2info.score;
unsigned long j=rstart_offset/INT_MAX;
if (pe2info.rstart_offset/INT_MAX!=j) throw std::runtime_error("Inconsistency between offset values in PE files!");
update_rpos(pe2info.f_id,pe2info.rstart_offset,j,&rp);
#ifdef DEBUG
nb_stop++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment