Commit 941863db authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

mtime: we might as well assert for real

parent 8ee69aa0
...@@ -484,7 +484,7 @@ mtime_t date_Increment( date_t *p_date, uint32_t i_nb_samples ) ...@@ -484,7 +484,7 @@ mtime_t date_Increment( date_t *p_date, uint32_t i_nb_samples )
if( p_date->i_remainder >= p_date->i_divider_num ) if( p_date->i_remainder >= p_date->i_divider_num )
{ {
/* This is Bresenham algorithm. */ /* This is Bresenham algorithm. */
/* It is guaranteed that: assert(i_remainder < 2*i_divider_num) */ assert( p_date->i_remainder < 2*p_date->i_divider_num);
p_date->date += 1; p_date->date += 1;
p_date->i_remainder -= p_date->i_divider_num; p_date->i_remainder -= p_date->i_divider_num;
} }
......
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