altos: Switch all tick variables to AO_TICK_TYPE/AO_TICK_SIGNED
[fw/altos] / src / kernel / ao_notask.c
index 8c5743fdecd0a0a1f7ae62c528e32d27c98a138b..c87bbbbbe21cbf32ab217b2856f105a299af379f 100644 (file)
@@ -44,7 +44,7 @@ void
 ao_delay_until(AO_TICK_TYPE target)
 {
        ao_arch_block_interrupts();
-       while ((int16_t) (target - ao_tick_count) > 0)
+       while ((AO_TICK_SIGNED) (target - ao_tick_count) > 0)
                ao_sleep((void *) &ao_tick_count);
        ao_arch_release_interrupts();
 }