diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 9f9c9c279c..dbc8350013 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -5012,7 +5012,7 @@ set_bool_option ( NULL, NULL, TRUE, curbuf); } /* when 'swf' is set, create swapfile, when reset remove swapfile */ - else if ((int *)varp == &curbuf->b_p_swf) { + else if ((int *)varp == (int *)&curbuf->b_p_swf) { if (curbuf->b_p_swf && p_uc) ml_open_file(curbuf); /* create the swap file */ else |