mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -5665,7 +5665,7 @@ tv_get_string_buf_chk(typval_T *varp, char_u *buf)
|
||||
{
|
||||
case VAR_NUMBER:
|
||||
vim_snprintf((char *)buf, NUMBUFLEN, "%lld",
|
||||
(long_long_T)varp->vval.v_number);
|
||||
(varnumber_T)varp->vval.v_number);
|
||||
return buf;
|
||||
case VAR_FUNC:
|
||||
case VAR_PARTIAL:
|
||||
|
Reference in New Issue
Block a user