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) {...@@ -35,7 +35,7 @@ pub const ascii = enum(u8) {
35 US,35 US,
3636
37 pub fn s(self: ascii) []const u8 {37 pub fn s(self: ascii) []const u8 {
38 return &[_]u8{@enumToInt(self)};38 return &[_]u8{@intFromEnum(self)};
39 }39 }
40};40};
4141
...@@ -180,11 +180,11 @@ pub const color = struct {...@@ -180,11 +180,11 @@ pub const color = struct {
180 };180 };
181181
182 pub fn Fg(s: Color, comptime m: []const u8) []const u8 {182 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;
184 }184 }
185185
186 pub fn Bg(s: Color, comptime m: []const u8) []const u8 {186 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;
188 }188 }
189189
190 pub fn Bold(comptime m: []const u8) []const u8 {190 pub fn Bold(comptime m: []const u8) []const u8 {