comparison runtime/doc/eval.txt @ 19477:2bb0e80fcd32 v8.2.0296

patch 8.2.0296: mixing up "long long" and __int64 may cause problems Commit: https://github.com/vim/vim/commit/f9706e9df0e37d214fb08eda30ba29627e97a607 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 22 14:27:04 2020 +0100 patch 8.2.0296: mixing up "long long" and __int64 may cause problems Problem: Mixing up "long long" and __int64 may cause problems. (John Marriott) Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Feb 2020 14:30:04 +0100
parents bd9069d21c5d
children 0d3dcb4476ba
comparison
equal deleted inserted replaced
19476:381e5000c519 19477:2bb0e80fcd32
46 *E712* *E896* *E897* *E899* 46 *E712* *E896* *E897* *E899*
47 There are ten types of variables: 47 There are ten types of variables:
48 48
49 *Number* *Integer* 49 *Number* *Integer*
50 Number A 32 or 64 bit signed number. |expr-number| 50 Number A 32 or 64 bit signed number. |expr-number|
51 64-bit Numbers are available only when compiled with the 51 The number of bits is available in |v:numbersize|.
52 |+num64| feature.
53 Examples: -123 0x10 0177 0b1011 52 Examples: -123 0x10 0177 0b1011
54 53
55 Float A floating point number. |floating-point-format| *Float* 54 Float A floating point number. |floating-point-format| *Float*
56 {only when compiled with the |+float| feature} 55 {only when compiled with the |+float| feature}
57 Examples: 123.456 1.15e-6 -1.1e3 56 Examples: 123.456 1.15e-6 -1.1e3
1988 When used as a string this evaluates to "v:null". > 1987 When used as a string this evaluates to "v:null". >
1989 echo v:null 1988 echo v:null
1990 < v:null ~ 1989 < v:null ~
1991 That is so that eval() can parse the string back to the same 1990 That is so that eval() can parse the string back to the same
1992 value. Read-only. 1991 value. Read-only.
1992
1993 *v:numbersize* *numbersize-variable*
1994 v:numbersize Number of bits in a Number. This is normally 64, but on some
1995 systems it my be 32.
1993 1996
1994 *v:oldfiles* *oldfiles-variable* 1997 *v:oldfiles* *oldfiles-variable*
1995 v:oldfiles List of file names that is loaded from the |viminfo| file on 1998 v:oldfiles List of file names that is loaded from the |viminfo| file on
1996 startup. These are the files that Vim remembers marks for. 1999 startup. These are the files that Vim remembers marks for.
1997 The length of the List is limited by the ' argument of the 2000 The length of the List is limited by the ' argument of the