> According to :help Number, a Number variable is a 32-bit signed integer. No
> mention of anything else.
>
> According to :help limits, a Number variable can have an absolute value
> larger than 2^31 (i.e. 2 * 1024^3) on 64-bit systems.
>
> AFAICT, the former seems to be true: Experiments with :echo and various
> Number values and expressions seem to indicate that even on 64-bit Vim,
> integers are silently truncated to their lower 32 bits.

Number values are stored in int, long is reserved for cases when int
is smaller than 32 bit.
sizeof(int) is not standardised so some 64-bit compilers have 32-bit
int while another use 64 bit.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui