From ea9961a8fb21d110c51d3d0f101b8cd996044b7d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 7 Feb 2020 23:16:31 +0100 Subject: [PATCH] fix term_windows.v --- vlib/term/term_windows.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/term/term_windows.v b/vlib/term/term_windows.v index fe489ee139..79be5ca8cb 100644 --- a/vlib/term/term_windows.v +++ b/vlib/term/term_windows.v @@ -25,8 +25,8 @@ pub fn get_terminal_size() (int, int) { info := CONSOLE_SCREEN_BUFFER_INFO{} if C.GetConsoleScreenBufferInfo(C.GetStdHandle(C.STD_OUTPUT_HANDLE), &info) { - columns := (info.srWindow.Right - info.srWindow.Left + 1) as int - rows := (info.srWindow.Bottom - info.srWindow.Top + 1) as int + columns := int(info.srWindow.Right - info.srWindow.Left + 1) + rows := int(info.srWindow.Bottom - info.srWindow.Top + 1) return columns, rows } }