Skip to content

Commit

Permalink
intCast
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Feb 29, 2024
1 parent 949363e commit 0c98d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub fn termSize(fd: os.fd_t) !TermSize {
&buf,
)) {
os.windows.TRUE => TermSize{
.width = buf.srWindow.Right - buf.srWindow.Left + 1,
.height = buf.srWindow.Bottom - buf.srWindow.Top + 1,
.width = @intCast(buf.srWindow.Right - buf.srWindow.Left + 1),
.height = @intCast(buf.srWindow.Bottom - buf.srWindow.Top + 1),
},
else => error.Unexpected,
};
Expand Down

0 comments on commit 0c98d32

Please sign in to comment.