From e84011929021cbcfd77a96e85f36bde5a6a6c81b Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 31 Mar 2024 19:42:56 +0800 Subject: [PATCH] Fix broken @fieldParentPtr --- generator/build_integration.zig | 2 +- generator/vulkan/build_integration.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/build_integration.zig b/generator/build_integration.zig index 13c3a1c..cc366a5 100644 --- a/generator/build_integration.zig +++ b/generator/build_integration.zig @@ -168,7 +168,7 @@ pub const ShaderCompileStep = struct { fn make(step: *Build.Step, progress: *std.Progress.Node) !void { _ = progress; const b = step.owner; - const self = @fieldParentPtr(ShaderCompileStep, "step", step); + const self: *ShaderCompileStep = @fieldParentPtr("step", step); const cwd = std.fs.cwd(); var cmd = std.ArrayList([]const u8).init(b.allocator); diff --git a/generator/vulkan/build_integration.zig b/generator/vulkan/build_integration.zig index 3b30098..7e578a2 100644 --- a/generator/vulkan/build_integration.zig +++ b/generator/vulkan/build_integration.zig @@ -74,7 +74,7 @@ pub const GenerateStep = struct { _ = progress; const b = step.owner; - const self = @fieldParentPtr(GenerateStep, "step", step); + const self: *GenerateStep = @fieldParentPtr("step", step); const cwd = std.fs.cwd(); var man = b.graph.cache.obtain();