core: Fix alignment in lookupThreadById()

This commit is contained in:
Gabriel 2025-02-22 15:38:23 +01:00
parent 4d8c3856d4
commit 960699c984

@ -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;
}