update time.c to not do a cast
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-04-15 22:20:13 -07:00
commit 5ca241ad0a
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ void timerUpdateFunc(void) {
long MwTimeGetTick(void) {
UnsignedWide h;
Microseconds(&h);
return *(long*)&h;
return h.lo;
}
void MwTimeSleep(int ms) {
tm.tmAddr = NewTimerProc(timerUpdateFunc);
@ -52,6 +52,8 @@ void MwTimeSleep(int ms) {
InsTime((QElemPtr)&tm);
PrimeTime((QElemPtr)&tm, 1);
DisposeTimerUPP(tm.tmAddr);
}
#elif defined(__unix__)
long MwTimeGetTick(void) {