| ... | ... | @@ -719,10 +719,9 @@ const Cancelable = struct { |
| 719 | 719 | queue: c.dispatch.queue_t, |
| 720 | 720 | cancel: c.dispatch.function_t, |
| 721 | 721 | |
| 722 | | const is_blocked: c.dispatch.function_t = |
| 723 | | @ptrFromInt(@typeInfo(c.dispatch.function_t).pointer.alignment * 1); |
| 724 | | const is_requested: c.dispatch.function_t = |
| 725 | | @ptrFromInt(@typeInfo(c.dispatch.function_t).pointer.alignment * 2); |
| 722 | const fn_ptr_align = std.meta.alignment(c.dispatch.function_t); |
| 723 | const is_blocked: c.dispatch.function_t = @ptrFromInt(fn_ptr_align * 1); |
| 724 | const is_requested: c.dispatch.function_t = @ptrFromInt(fn_ptr_align * 2); |
| 726 | 725 | |
| 727 | 726 | const blocked: Cancelable = .{ .queue = undefined, .cancel = is_blocked }; |
| 728 | 727 | |