From 3957bbe9246f11910eff799af347df0869cfb2e9 Mon Sep 17 00:00:00 2001 From: Michael Bentley Date: Mon, 19 Oct 2026 20:37:07 -0400 Subject: [PATCH] Make the ThreadScan definition in thw3.c match its declaration. code/th.h declares ThreadScan's stackCold parameter as void *, as do the definitions in than.c, thix.c and thxc.c, but thw3.c defined it as Word *. Clang rejects the mismatch as conflicting types when building w3i6mv with clang-cl. The body assigns stackCold to a Word * and passes it to StackScan, whose parameter is void *, so no other change is needed. Fixes GitHub issue #317 . --- code/thw3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/thw3.c b/code/thw3.c index dd573df14c..deff280919 100644 --- a/code/thw3.c +++ b/code/thw3.c @@ -259,7 +259,7 @@ Res ThreadDescribe(Thread thread, mps_lib_FILE *stream, Count depth) } -Res ThreadScan(ScanState ss, Thread thread, Word *stackCold, +Res ThreadScan(ScanState ss, Thread thread, void *stackCold, mps_area_scan_t scan_area, void *closure) { DWORD id;