From 0c82250bd219bf4fff45af36f9e86bb2ced301d2 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 20 Feb 2024 11:16:34 -0500 Subject: [PATCH] Fix Time.msleep() when inlined in a loop --- src/hulk/time.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hulk/time.d b/src/hulk/time.d index 1a422cb..70954ea 100644 --- a/src/hulk/time.d +++ b/src/hulk/time.d @@ -34,7 +34,7 @@ struct Time */ public static void msleep(ulong count) { - ulong wait_for = s_uptime + count + 1; + ulong wait_for = uptime() + count + 1; while (uptime() < wait_for) { }