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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user