浏览代码

Change `<` to `<=`

gingerBill 3 年之前
父节点
当前提交
0e5c7e08fc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/os/file_windows.odin

+ 1 - 1
core/os/file_windows.odin

@@ -130,7 +130,7 @@ read_console :: proc(handle: win32.HANDLE, b: []byte) -> (n: int, err: Errno) {
 			b[n] = x
 			n += 1
 		}
-		if ctrl_z || single_read_length < max_read {
+		if ctrl_z || single_read_length <= max_read {
 			break
 		}
 	}