From daea80cea691a18888e837342d4d9fdd1c945f4c Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 22 Feb 2025 15:38:23 +0100 Subject: [PATCH] core: Fix alignment in lookupThreadById() --- core/src/thread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/thread.zig b/core/src/thread.zig index 32a00e0..efc843a 100644 --- a/core/src/thread.zig +++ b/core/src/thread.zig @@ -314,7 +314,7 @@ pub fn lookupThreadById(id: u64) ?*ThreadControlBlock { var it: ?*GlobalThreadList.Node = global_thread_list.first; while (it) |n| : (it = n.next) { - const thread: *ThreadControlBlock = @fieldParentPtr("tag", n); + const thread: *ThreadControlBlock = @alignCast(@fieldParentPtr("tag", n)); if (thread.id == id) return thread; }