Commit 9543bae3 authored by Santiago Ospina's avatar Santiago Ospina

fixbug: change the order of evaluation of iterator

Signed-off-by: default avatarSantiago Ospina <>
parent 6af502d5
......@@ -272,7 +272,7 @@ namespace Dorie{
auto it=bcTimeStamps.begin();
unsigned int n=0;
while(*it<=time && it!=bcTimeStamps.end()){
while(it!=bcTimeStamps.end() && *it<=time){
it++; n++;
return n-1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment