Skip to content

Commit 1735ccd

Browse files
Game4allikskuh
authored andcommitted
Fix @ptrCast uses which now automatically infer the destination type as per ziglang/zig#16163
1 parent a6b98a1 commit 1735ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public static void WriteLoader(TextWriter stream, IEnumerable<Command> commands)
273273
foreach (var cmd in commands)
274274
{
275275
stream.WriteLine(" if(get_proc_address(load_ctx, \"{0}\")) |proc| {{", cmd.Prototype.Name);
276-
stream.WriteLine(" function_pointers.{0} = @ptrCast(@TypeOf(function_pointers.{0}), proc);", cmd.Prototype.Name);
276+
stream.WriteLine(" function_pointers.{0} = @ptrCast(proc);", cmd.Prototype.Name);
277277
stream.WriteLine(" } else {");
278278
stream.WriteLine(" log.err(\"entry point {0} not found!\", .{{}});", cmd.Prototype.Name);
279279
stream.WriteLine(" success = false;");

0 commit comments

Comments
 (0)