JN516x clock module sign error fix

This commit is contained in:
Marko Gucanin 2016-03-31 13:51:03 +02:00
parent 29c9907c08
commit 1818700bde

View file

@ -258,7 +258,7 @@ clock_arch_time_to_etimer(void)
clock_time_t time_to_etimer;
if(etimer_pending()) {
time_to_etimer = etimer_next_expiration_time() - clock_time();
if(time_to_etimer < 0) {
if((int32_t)time_to_etimer < 0) {
time_to_etimer = 0;
}
} else {