comparison src/eval.c @ 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 e7b4fff348dd
children b38d73f36467
comparison
equal deleted inserted replaced
19476:381e5000c519 19477:2bb0e80fcd32
5663 { 5663 {
5664 switch (varp->v_type) 5664 switch (varp->v_type)
5665 { 5665 {
5666 case VAR_NUMBER: 5666 case VAR_NUMBER:
5667 vim_snprintf((char *)buf, NUMBUFLEN, "%lld", 5667 vim_snprintf((char *)buf, NUMBUFLEN, "%lld",
5668 (long_long_T)varp->vval.v_number); 5668 (varnumber_T)varp->vval.v_number);
5669 return buf; 5669 return buf;
5670 case VAR_FUNC: 5670 case VAR_FUNC:
5671 case VAR_PARTIAL: 5671 case VAR_PARTIAL:
5672 emsg(_("E729: using Funcref as a String")); 5672 emsg(_("E729: using Funcref as a String"));
5673 break; 5673 break;