#include <vlc_common.h>
#include <assert.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#if !defined (_POSIX_TIMERS) || defined (_WIN32)
# define _POSIX_TIMERS (-1)
#endif
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;
}