bugfix
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 18:12:49 +0000 (13:12 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 15 May 2023 18:12:49 +0000 (13:12 -0500)
core/time/time.onyx

index da79a36e1e88d43ed2b2f4b5e7f599b78e956ea1..a2e7c053699e9bffb3d7b9882eeb147a6ffe8bd6 100644 (file)
@@ -52,10 +52,11 @@ Timestamp :: struct #size (sizeof u32 * 12) {
 
 
 now :: () -> Timestamp {
+    current_time: i64;
     #if runtime.platform.Supports_Time {
-        current_time := runtime.platform.__time();
+        current_time = runtime.platform.__time();
     } else {
-        current_time := 0;
+        current_time = 0;
     }
 
     //