- HAL (Linux): fixed problem with Hal_getTimeInNs on 32 bit systems

pull/535/head
Michael Zillgith 1 year ago
parent 1b91b09802
commit 830059fca2

@ -41,8 +41,8 @@ Hal_getTimeInNs()
clock_gettime(CLOCK_REALTIME, &now);
nsSinceEpoch nsTime = now.tv_sec * 1000000000UL;
nsTime += now.tv_nsec;
nsSinceEpoch nsTime = (nsSinceEpoch)(now.tv_sec) * 1000000000UL;
nsTime += (nsSinceEpoch)(now.tv_nsec);
return nsTime;
}
@ -62,6 +62,4 @@ Hal_setTimeInNs(nsSinceEpoch nsTime)
return true;
}
#endif

Loading…
Cancel
Save