summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-17 21:51:56 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-17 21:51:56 +0200
commitaf9c4c9b5761c4c074237d87e2c95713bf721eab (patch)
treeef285eba880631e886b995429cbeff7baa153cae /src/eval.c
parentd3c907b5d2b352482b580a0cf687cbbea4c19ea1 (diff)
downloadvim-git-af9c4c9b5761c4c074237d87e2c95713bf721eab.tar.gz
patch 7.4.2224v7.4.2224
Problem: Compiler warnings with older compiler and 64 bit numbers. Solution: Add "LL" to large values. (Mike Williams)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 2ab3ee4b9..9b3f248b0 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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 */