0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.2224

Problem:    Compiler warnings with older compiler and 64 bit numbers.
Solution:   Add "LL" to large values. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2016-08-17 21:51:56 +02:00
parent d3c907b5d2
commit af9c4c9b57
3 changed files with 9 additions and 7 deletions

View File

@@ -4087,11 +4087,11 @@ eval6(
{
#ifdef FEAT_NUM64
if (n1 == 0)
n1 = -0x7fffffffffffffff - 1; /* similar to NaN */
n1 = -0x7fffffffffffffffLL - 1; /* similar to NaN */
else if (n1 < 0)
n1 = -0x7fffffffffffffff;
n1 = -0x7fffffffffffffffLL;
else
n1 = 0x7fffffffffffffff;
n1 = 0x7fffffffffffffffLL;
#else
if (n1 == 0)
n1 = -0x7fffffffL - 1L; /* similar to NaN */