Skip to content

Commit

Permalink
test_runner: replace ugly hack with @FieldType
Browse files Browse the repository at this point in the history
  • Loading branch information
mlugg committed Nov 11, 2024
1 parent 05a3ac4 commit f83bb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/test_runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn mainServer() !void {
.leak = leak,
.fuzz = is_fuzz_test,
.log_err_count = std.math.lossyCast(
@TypeOf(@as(std.zig.Server.Message.TestResults.Flags, undefined).log_err_count),
@FieldType(std.zig.Server.Message.TestResults.Flags, "log_err_count"),
log_err_count,
),
},
Expand Down

0 comments on commit f83bb94

Please sign in to comment.