diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-01 23:14:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-01 23:14:02 +0200 |
commit | 2acfbed9dbea990f129535de7ff3df360365130b (patch) | |
tree | a7a0be95e7ed13ae5450de39b948a1ef34d318c0 /src/option.c | |
parent | c5af40ae646ceda817eff93b4f9ba274f031bea6 (diff) | |
download | vim-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.c | 2 |
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; } |