core: Fix alignment in lookupThreadById()
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user