From a8e08d4138c09f43d4998e58fcf61e251015e012 Mon Sep 17 00:00:00 2001 From: fincs Date: Fri, 28 Nov 2014 23:54:32 +0100 Subject: [PATCH] osGetTime(): avoid using u64<->double conversions (not supported by VFP) --- libctru/source/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libctru/source/os.c b/libctru/source/os.c index fb2bd97..e2677ed 100644 --- a/libctru/source/os.c +++ b/libctru/source/os.c @@ -49,7 +49,7 @@ u64 osGetTime() { 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; }