*: Fix conversion warnings for tv_get_number*()

This commit is contained in:
James McCoy
2017-06-06 14:30:48 -04:00
parent bf4de3f6f7
commit af59a290d8
3 changed files with 4 additions and 4 deletions

View File

@@ -1477,7 +1477,7 @@ do_set (
if (removing) {
value = *(long *)varp - value;
}
errmsg = (char_u *)set_num_option(opt_idx, varp, value,
errmsg = (char_u *)set_num_option(opt_idx, varp, (long)value,
errbuf, sizeof(errbuf),
opt_flags);
} else if (opt_idx >= 0) { // String.