Skip to content

Commit

Permalink
Merge pull request Snektron#126 from igaryhe/fix-fieldparentptr
Browse files Browse the repository at this point in the history
Fix broken @fieldParentPtr
  • Loading branch information
Snektron authored Apr 1, 2024
2 parents ac4103a + e840119 commit e608695
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 e608695

Please sign in to comment.