diff --git a/flake.lock b/flake.lock index 3e08b46..8bd21fe 100644 --- a/flake.lock +++ b/flake.lock @@ -109,11 +109,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1697847645, - "narHash": "sha256-Hnc0EGGVTV1w8tnFRJMtEDXl16S9JmlOphYBjiR1u8c=", + "lastModified": 1700526194, + "narHash": "sha256-/7C9bzFG0Gq/tBAbSwC84Dg5TNPomCcxIJJQNj3Y2BI=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "5b3efe4890dfee644bb8b7d98834de1b08b35d49", + "rev": "2877b025231e96196469ee8a5b80799027b42e03", "type": "github" }, "original": { diff --git a/src/msg_send.zig b/src/msg_send.zig index 3ad3809..ec830a6 100644 --- a/src/msg_send.zig +++ b/src/msg_send.zig @@ -38,9 +38,7 @@ pub fn MsgSend(comptime T: type) type { // Build our function type and call it const Fn = MsgSendFn(RealReturn, @TypeOf(target.value), @TypeOf(args)); const msg_send_fn = comptime msgSendPtr(RealReturn, false); - // Due to this stage2 Zig issue[1], this must be var for now. - // [1]: https://github.com/ziglang/zig/issues/13598 - var msg_send_ptr: *const Fn = @ptrCast(msg_send_fn); + const msg_send_ptr: *const Fn = @ptrCast(msg_send_fn); const result = @call(.auto, msg_send_ptr, .{ target.value, sel.value } ++ args); if (!is_object) return result; @@ -66,7 +64,7 @@ pub fn MsgSend(comptime T: type) type { const Fn = MsgSendFn(RealReturn, *c.objc_super, @TypeOf(args)); const msg_send_fn = comptime msgSendPtr(RealReturn, true); - var msg_send_ptr: *const Fn = @ptrCast(msg_send_fn); + const msg_send_ptr: *const Fn = @ptrCast(msg_send_fn); var super: c.objc_super = .{ .receiver = target.value, .super_class = superclass.value,