fix: zig-0.13 build of editor_gutter
This commit is contained in:
parent
9c01402f15
commit
f225c9c045
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue