diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index ee5f0c9e7..d1e2b19e9 100644 --- a/src/eval.c +++ b/src/eval.c @@ -15612,7 +15612,7 @@ var2fpos(varp, lnum) pos.col = get_tv_number(&li->li_tv); len = (long)STRLEN(ml_get(pos.lnum)); if (pos.col <= 0 || ((len == 0 && pos.col > 1) - || (len > 0 && pos.col > len))) + || (len > 0 && (int)pos.col > len))) return NULL; /* invalid column number */ pos.col--; |