diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-22 14:27:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-22 14:27:04 +0100 |
commit | f9706e9df0e37d214fb08eda30ba29627e97a607 (patch) | |
tree | 9d90ad2977ed759664a2c2d0776901f34a8e0350 /runtime/doc | |
parent | c036e87bd7001238ab7cc5d9e30e59bbf989a5fd (diff) |
patch 8.2.0296: mixing up "long long" and __int64 may cause problemsv8.2.0296
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 7 | ||||
-rw-r--r-- | runtime/doc/various.txt | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 62a73048b7..4349e76ef5 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -48,8 +48,7 @@ There are ten types of variables: *Number* *Integer* Number A 32 or 64 bit signed number. |expr-number| - 64-bit Numbers are available only when compiled with the - |+num64| feature. + The number of bits is available in |v:numbersize|. Examples: -123 0x10 0177 0b1011 Float A floating point number. |floating-point-format| *Float* @@ -1991,6 +1990,10 @@ v:null An empty String. Used to put "null" in JSON. See That is so that eval() can parse the string back to the same value. Read-only. + *v:numbersize* *numbersize-variable* +v:numbersize Number of bits in a Number. This is normally 64, but on some + systems it my be 32. + *v:oldfiles* *oldfiles-variable* v:oldfiles List of file names that is loaded from the |viminfo| file on startup. These are the files that Vim remembers marks for. diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index 85e18b3f62..547ca762af 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -1,4 +1,4 @@ -*various.txt* For Vim version 8.2. Last change: 2019 Dec 07 +*various.txt* For Vim version 8.2. Last change: 2020 Feb 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -407,7 +407,9 @@ N *+multi_lang* non-English language support |multi-lang| m *+mzscheme* Mzscheme interface |mzscheme| m *+mzscheme/dyn* Mzscheme interface |mzscheme-dynamic| |/dyn| m *+netbeans_intg* |netbeans| - *+num64* 64-bit Number support |Number| + *+num64* 64-bit Number support |Number| + Always enabled since 8.2.0271, use v:numbersize to + check the actual size of a Number. m *+ole* Win32 GUI only: |ole-interface| N *+packages* Loading |packages| N *+path_extra* Up/downwards search in 'path' and 'tags' |