fix: zig-0.13 build of editor_gutter

This commit is contained in:
CJ van den Berg 2025-02-06 21:18:43 +01:00
parent 9c01402f15
commit f225c9c045
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -426,7 +426,7 @@ fn int_width(n_: usize) usize {
fn print_digits(self: *Self, n_: anytype, style_: DigitStyle) !void { fn print_digits(self: *Self, n_: anytype, style_: DigitStyle) !void {
var n = n_; var n = n_;
var buf: [12][]const u8 = undefined; var buf: [12][]const u8 = undefined;
var digits: std.ArrayListUnmanaged([]const u8) = .initBuffer(&buf); var digits = std.ArrayListUnmanaged([]const u8).initBuffer(&buf);
while (true) { while (true) {
digits.addOneAssumeCapacity().* = get_digit(n % 10, style_); digits.addOneAssumeCapacity().* = get_digit(n % 10, style_);
n /= 10; n /= 10;