1
0
forked from aniani/vim

patch 7.4.1979

Problem:    Getting value of binary option is wrong. (Kent Sibilev)
Solution:   Fix type cast.  Add a test.
This commit is contained in:
Bram Moolenaar
2016-07-01 23:14:02 +02:00
parent c5af40ae64
commit 2acfbed9db
3 changed files with 26 additions and 1 deletions

View File

@@ -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;
}