commit | 2acfbed9dbea990f129535de7ff3df360365130b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jul 01 23:14:02 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jul 01 23:14:02 2016 +0200 |
tree | a7a0be95e7ed13ae5450de39b948a1ef34d318c0 | |
parent | c5af40ae646ceda817eff93b4f9ba274f031bea6 [diff] [blame] |
patch 7.4.1979 Problem: Getting value of binary option is wrong. (Kent Sibilev) Solution: Fix type cast. Add a test.
diff --git a/src/option.c b/src/option.c index 47bbe73..95f4c73 100644 --- a/src/option.c +++ b/src/option.c
@@ -9102,7 +9102,7 @@ if ((int *)varp == &curbuf->b_changed) *numval = curbufIsChanged(); else - *numval = (long) *(varnumber_T *)varp; + *numval = (long) *(int *)varp; } return 1; }