Merge pull request #1576 from mguc/jn516x_clock_module_signfix

JN516x clock module sign error fix
This commit is contained in:
Simon Duquennoy 2016-04-01 08:59:36 +02:00
commit fb31d8d641

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 {