Skip to content

Commit

Permalink
Fix broken @fieldParentPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
igaryhe committed Mar 31, 2024
1 parent ac4103a commit e840119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator/build_integration.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion generator/vulkan/build_integration.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e840119

Please sign in to comment.