Skip to content
Snippets Groups Projects
Unverified Commit d34bf526 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #10783 from kaspar030/fix_native_timer

cpu/native/periph/timer: fix type conversion
parents 519b9ebc f5345fbd
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ static struct itimerval itv;
static unsigned long ts2ticks(struct timespec *tp)
{
/* TODO: check for overflow */
return((tp->tv_sec * NATIVE_TIMER_SPEED) + (tp->tv_nsec / 1000));
return(((unsigned long)tp->tv_sec * NATIVE_TIMER_SPEED) + (tp->tv_nsec / 1000));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment