From cca79d32a288d998b1460582617e7b31dccfa666 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 23 Oct 2021 15:30:20 -0400 Subject: [PATCH] android: Patched SDL_GetTicks64() to compile. --- src/timer/unix/SDL_systimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer/unix/SDL_systimer.c b/src/timer/unix/SDL_systimer.c index ed4e4af03..3bae176b1 100644 --- a/src/timer/unix/SDL_systimer.c +++ b/src/timer/unix/SDL_systimer.c @@ -117,7 +117,7 @@ SDL_GetTicks64(void) #if HAVE_CLOCK_GETTIME struct timespec now; clock_gettime(SDL_MONOTONIC_CLOCK, &now); - ticks = (((Uint64) (now.tv_sec - start_ts.tv_sec)) * 1000) + (((Uint64) (now.tv_nsec - start_ts.tv_nsec)) / 1000000); + return (((Uint64) (now.tv_sec - start_ts.tv_sec)) * 1000) + (((Uint64) (now.tv_nsec - start_ts.tv_nsec)) / 1000000); #elif defined(__APPLE__) const uint64_t now = mach_absolute_time(); return (Uint64) ((((now - start_mach) * mach_base_info.numer) / mach_base_info.denom) / 1000000);