aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-06-07 14:05:46 +0000
committerGitHub <noreply@github.com>2017-06-07 14:05:46 +0000
commitd3d0c9a7b11cad3f277f732dee6c782d1d911b48 (patch)
tree9440bfffd38ff3cdf98127c95764db1f84adadb7 /src/nvim/option.c
parentcb0abce5be1dd6212425589b61826332834dc977 (diff)
parentca1ba1085a2be1f8963b48c9ccf3936359959924 (diff)
downloadrneovim-d3d0c9a7b11cad3f277f732dee6c782d1d911b48.tar.gz
rneovim-d3d0c9a7b11cad3f277f732dee6c782d1d911b48.tar.bz2
rneovim-d3d0c9a7b11cad3f277f732dee6c782d1d911b48.zip
Merge pull request #5621 from jamessan/vim-7.4.1975
vim-patch:7.4.1975,7.4.1976,7.4.1977,7.4.1978,7.4.1979,7.4.1986,7.4.2029,7.4.2224,8.0.0219,8.0.0614
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 392a2f3908..337d16a55b 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -1144,7 +1144,7 @@ do_set (
int afterchar; /* character just after option name */
int len;
int i;
- long value;
+ varnumber_T value;
int key;
uint32_t flags; /* flags for current option */
char_u *varp = NULL; /* pointer to variable for current option */
@@ -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.
@@ -4630,7 +4630,7 @@ get_option_value (
if ((int *)varp == &curbuf->b_changed) {
*numval = curbufIsChanged();
} else {
- *numval = *(int *)varp;
+ *numval = (long) *(int *)varp; // NOLINT(whitespace/cast)
}
}
return 1;