Commit ff6938db authored by Thomas Guillem's avatar Thomas Guillem

date_Increment: add assert

parent ba6b88f0
......@@ -152,6 +152,7 @@ void date_Move( date_t *p_date, mtime_t i_difference )
*/
mtime_t date_Increment( date_t *p_date, uint32_t i_nb_samples )
{
assert( p_date->i_divider_num != 0 );
mtime_t i_dividend = i_nb_samples * CLOCK_FREQ * p_date->i_divider_den;
lldiv_t d = lldiv( i_dividend, 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