mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
Use @TypeOf
instead of std.meta
in test_runner.zig
This might fix a CI failure for powerpc64le-linux-musl.
This commit is contained in:
parent
4c393c7468
commit
2465c328aa
@ -106,10 +106,10 @@ fn mainServer() !void {
|
||||
.fail = fail,
|
||||
.skip = skip,
|
||||
.leak = leak,
|
||||
.log_err_count = std.math.lossyCast(std.meta.FieldType(
|
||||
std.zig.Server.Message.TestResults.Flags,
|
||||
.log_err_count,
|
||||
), log_err_count),
|
||||
.log_err_count = std.math.lossyCast(
|
||||
@TypeOf(@as(std.zig.Server.Message.TestResults.Flags, undefined).log_err_count),
|
||||
log_err_count,
|
||||
),
|
||||
},
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user