Skip to content

Commit

Permalink
Fix time comparison
Browse files Browse the repository at this point in the history
?: has lower precedence than +.

(cherry picked from commit 0720c5e)
(cherry picked from commit 1751a6a)
  • Loading branch information
l2dy authored and liviuchircu committed Mar 9, 2020
1 parent e054ffa commit 2531032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time_rec.c
Expand Up @@ -1131,7 +1131,7 @@ int check_byxxx(tmrec_p _trp, ac_tm_p _atp)
_amp->mday)%_amp->mday + ((_trp->bymday->req[i]<0)?1:0));
#endif
if(_atp->t.tm_mday == (_trp->bymday->xxx[i]*_trp->bymday->req[i]+
_amp->mday)%_amp->mday + (_trp->bymday->req[i]<0)?1:0)
_amp->mday)%_amp->mday + ((_trp->bymday->req[i]<0)?1:0))
break;
}
if(i>=_trp->bymday->nr)
Expand Down

0 comments on commit 2531032

Please sign in to comment.