summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-01 23:14:02 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-01 23:14:02 +0200
commit2acfbed9dbea990f129535de7ff3df360365130b (patch)
treea7a0be95e7ed13ae5450de39b948a1ef34d318c0 /src/option.c
parentc5af40ae646ceda817eff93b4f9ba274f031bea6 (diff)
downloadvim-git-2acfbed9dbea990f129535de7ff3df360365130b.tar.gz
patch 7.4.1979v7.4.1979
Problem: Getting value of binary option is wrong. (Kent Sibilev) Solution: Fix type cast. Add a test.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c
index 47bbe733b..95f4c734a 100644
--- a/src/option.c
+++ b/src/option.c
@@ -9102,7 +9102,7 @@ get_option_value(
if ((int *)varp == &curbuf->b_changed)
*numval = curbufIsChanged();
else
- *numval = (long) *(varnumber_T *)varp;
+ *numval = (long) *(int *)varp;
}
return 1;
}