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