summaryrefslogtreecommitdiff
path: root/test/perf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/perf.zig')
-rw-r--r--test/perf.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/perf.zig b/test/perf.zig
index d01d1bb5..7662d028 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -517,8 +517,8 @@ fn gate(cells: *const [std.enums.values(Op).len][fixtures.len]Cell, base: *const
};
// Typing beside a twin costs about what typing alone does, whatever the
// baseline: the twin takes the splice, never a copy of the text.
- const twin_op = @intFromEnum(Op.edit_twin);
- const alone_op = @intFromEnum(Op.edit_char);
+ const twin_op = @backingInt(Op.edit_twin);
+ const alone_op = @backingInt(Op.edit_char);
for (fixtures, 0..) |fx, fi| {
const twin = cells[twin_op][fi].min_us;
const alone = cells[alone_op][fi].min_us;
@@ -1220,7 +1220,7 @@ fn measureMini(io: std.Io, fallback: std.mem.Allocator, reps: usize, json: bool)
break :blk try pardes.syntax.highlightFileRange(gpa, path, source, 0, source.len);
};
defer gpa.free(styles);
- if (styles.len != source.len or std.mem.indexOfScalar(u8, styles, @intFromEnum(pardes.syntax.Syn.comment)) == null)
+ if (styles.len != source.len or std.mem.indexOfScalar(u8, styles, @backingInt(pardes.syntax.Syn.comment)) == null)
return error.MiniSyntaxUnavailable;
const expected = try pardes.panes.mini.generate(gpa, source, styles);
defer expected.deinit(gpa);