vim-patch:7.4.1979

Problem:    Getting value of binary option is wrong. (Kent Sibilev)
Solution:   Fix type cast.  Add a test.

2acfbed9db
This commit is contained in:
James McCoy
2016-11-16 14:12:13 -05:00
parent 0164a5fea3
commit 03f5f78792
3 changed files with 25 additions and 2 deletions

View File

@@ -4630,7 +4630,7 @@ get_option_value (
if ((int *)varp == &curbuf->b_changed) {
*numval = curbufIsChanged();
} else {
*numval = (long) *(varnumber_T *)varp;
*numval = (long) *(int *)varp;
}
}
return 1;