| ... | ... | @@ -89,7 +89,7 @@ pub fn spawn(pool: *Pool, comptime func: anytype, args: anytype) !void { |
| 89 | 89 | |
| 90 | 90 | fn runFn(runnable: *Runnable) void { |
| 91 | 91 | const run_node: *RunQueue.Node = @fieldParentPtr("data", runnable); |
| 92 | | const closure: *@This() = @fieldParentPtr("run_node", run_node); |
| 92 | const closure: *@This() = @alignCast(@fieldParentPtr("run_node", run_node)); |
| 93 | 93 | @call(.auto, func, closure.arguments); |
| 94 | 94 | |
| 95 | 95 | // The thread pool's allocator is protected by the mutex. |