From 4aeda0c38948a51ce3dd96b3f0697c1ee732863a Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 1 Oct 2020 10:59:11 -0400 Subject: rts: Fix integer width in TICK_BUMP_BY Previously `TICK_BUMP_BY` was defined as ```c #define TICK_BUMP_BY(ctr,n) CLong[ctr] = CLong[ctr] + n ``` Yet the tickers themselves were defined as `StgInt`s. This happened to work out correctly on Linux, where `CLong` is 64-bits. However, it failed on Windows, where `CLong` is 32-bits, resulting in #18782. Fixes #18783. --- includes/Cmm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Cmm.h b/includes/Cmm.h index 526dddc7aa..574c60a1b3 100644 --- a/includes/Cmm.h +++ b/includes/Cmm.h @@ -652,7 +652,7 @@ -------------------------------------------------------------------------- */ #if defined(TICKY_TICKY) -#define TICK_BUMP_BY(ctr,n) CLong[ctr] = CLong[ctr] + n +#define TICK_BUMP_BY(ctr,n) W_[ctr] = W_[ctr] + n #else #define TICK_BUMP_BY(ctr,n) /* nothing */ #endif -- cgit v1.2.1