authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-04 01:18:27 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-04 01:18:27 -07:00
logac607e4e7ac36d46cc67c8786262578330543a36
tree7d12ac26ff520134e412c7af8163d8f6ca315fa7
parentfaf9585bfe5980c24748ee8a3e6a22faaa50b437

update to zig 0.11.0


1 files changed, 3 insertions(+), 3 deletions(-)

src/lib.zig+3-3
......@@ -35,7 +35,7 @@ pub const ascii = enum(u8) {
3535 US,
3636
3737 pub fn s(self: ascii) []const u8 {
38 return &[_]u8{@enumToInt(self)};
38 return &[_]u8{@intFromEnum(self)};
3939 }
4040};
4141
......@@ -180,11 +180,11 @@ pub const color = struct {
180180 };
181181
182182 pub fn Fg(s: Color, comptime m: []const u8) []const u8 {
183 return csi.SGR(.{30 + @enumToInt(s)}) ++ m ++ style.ResetFgColor;
183 return csi.SGR(.{30 + @intFromEnum(s)}) ++ m ++ style.ResetFgColor;
184184 }
185185
186186 pub fn Bg(s: Color, comptime m: []const u8) []const u8 {
187 return csi.SGR(.{40 + @enumToInt(s)}) ++ m ++ style.ResetBgColor;
187 return csi.SGR(.{40 + @intFromEnum(s)}) ++ m ++ style.ResetBgColor;
188188 }
189189
190190 pub fn Bold(comptime m: []const u8) []const u8 {