osGetTime(): avoid using u64<->double conversions (not supported by VFP)

This commit is contained in:
fincs 2014-11-28 23:54:32 +01:00
parent ac4c183868
commit a8e08d4138

View File

@ -49,7 +49,7 @@ u64 osGetTime() {
break; break;
} }
u64 offset = (svcGetSystemTick() - dt->update_tick) / TICKS_PER_MSEC; u64 offset = (u32)((u32)(svcGetSystemTick() - dt->update_tick) / TICKS_PER_MSEC);
return dt->date_time + offset; return dt->date_time + offset;
} }