1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: disallow 'small_unsigned == signed' (#13967)

This commit is contained in:
Nick Treleaven
2022-04-12 17:37:30 +01:00
committed by GitHub
parent 6718958058
commit c780de6282
15 changed files with 116 additions and 33 deletions

View File

@@ -288,8 +288,8 @@ fn (mut ctx Context) parse_events() {
if !C.GetConsoleScreenBufferInfo(ctx.stdout_handle, &sb) {
panic('could not get screenbuffer info')
}
w := sb.srWindow.Right - sb.srWindow.Left + 1
h := sb.srWindow.Bottom - sb.srWindow.Top + 1
w := int(sb.srWindow.Right - sb.srWindow.Left + 1)
h := int(sb.srWindow.Bottom - sb.srWindow.Top + 1)
utf8 := '($ctx.window_width, $ctx.window_height) -> ($w, $h)'
if w != ctx.window_width || h != ctx.window_height {
ctx.window_width, ctx.window_height = w, h