Commit 4e6c9e08 authored by Ilkka Ollakka's avatar Ilkka Ollakka

date_Decrement: change assert so it doesn't to funky stuff

If we do date_Set and right after that date_Decrement that assert
seemed to behave differently in 64bit and 32bit architectures.

Ref #9022, #10101
parent 67531a98
......@@ -217,7 +217,7 @@ mtime_t date_Decrement( date_t *p_date, uint32_t i_nb_samples )
if( p_date->i_remainder < i_rem_adjust )
{
/* This is Bresenham algorithm. */
assert( p_date->i_remainder > -p_date->i_divider_num);
assert( p_date->i_remainder < p_date->i_divider_num);
p_date->date -= 1;
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