Commit c75e780f8fa25802ea965f9bff69cbae8c38ab90

Sam Lantinga 2022-06-29T17:25:33

Merge commit 'f25b4b27743d4b018393a3083e9d9061ab5ce07a' into main

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/timer/unix/SDL_systimer.c b/src/timer/unix/SDL_systimer.c
index 9930be8..406bd48 100644
--- a/src/timer/unix/SDL_systimer.c
+++ b/src/timer/unix/SDL_systimer.c
@@ -87,7 +87,7 @@ SDL_TicksInit(void)
         has_monotonic_time = SDL_TRUE;
     } else
 #elif defined(__APPLE__)
-    if (0 == mach_timebase_info(&mach_base_info)) {
+    if (mach_timebase_info(&mach_base_info) == 0) {
         has_monotonic_time = SDL_TRUE;
         start_mach = mach_absolute_time();
     } else