diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-01 18:17:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-01 18:17:26 +0200 |
commit | 22fcfad29276bd5f317faf516637dcd491b96a12 (patch) | |
tree | 5787f5e2134b066406fd0d222c4f2f0d18e28024 /src/option.c | |
parent | 8767f52fbfd4f053ce00a978227c95f1d7d323fe (diff) | |
download | vim-git-22fcfad29276bd5f317faf516637dcd491b96a12.tar.gz |
patch 7.4.1976v7.4.1976
Problem: Number variables are not 64 bits while they could be.
Solution: Add the num64 feature. (Ken Takata)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index 80bd867a1..47bbe733b 100644 --- a/src/option.c +++ b/src/option.c @@ -4179,7 +4179,7 @@ do_set( int afterchar; /* character just after option name */ int len; int i; - long value; + varnumber_T value; int key; long_u flags; /* flags for current option */ char_u *varp = NULL; /* pointer to variable for current option */ @@ -9102,7 +9102,7 @@ get_option_value( if ((int *)varp == &curbuf->b_changed) *numval = curbufIsChanged(); else - *numval = *(int *)varp; + *numval = (long) *(varnumber_T *)varp; } return 1; } |