mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
build: enable MSVC level 3 warnings (#21934)
MSVC has 4 different warning levels: 1 (severe), 2 (significant), 3 (production quality) and 4 (informational). Enabling level 3 warnings mostly revealed conversion problems, similar to GCC/clang -Wconversion flag.
This commit is contained in:
@@ -192,9 +192,9 @@ win_T *find_tabwin(typval_T *wvp, typval_T *tvp)
|
||||
|
||||
if (wvp->v_type != VAR_UNKNOWN) {
|
||||
if (tvp->v_type != VAR_UNKNOWN) {
|
||||
long n = tv_get_number(tvp);
|
||||
int n = (int)tv_get_number(tvp);
|
||||
if (n >= 0) {
|
||||
tp = find_tabpage((int)n);
|
||||
tp = find_tabpage(n);
|
||||
}
|
||||
} else {
|
||||
tp = curtab;
|
||||
|
Reference in New Issue
Block a user