Mercurial > vim
comparison src/eval.c @ 9900:daecffbd0322 v7.4.2224
commit https://github.com/vim/vim/commit/af9c4c9b5761c4c074237d87e2c95713bf721eab
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 17 21:51:56 2016 +0200
patch 7.4.2224
Problem: Compiler warnings with older compiler and 64 bit numbers.
Solution: Add "LL" to large values. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Aug 2016 22:00:07 +0200 |
parents | 989d44d35a66 |
children | 4da1a3879100 |
comparison
equal
deleted
inserted
replaced
9899:816999bfd4c8 | 9900:daecffbd0322 |
---|---|
4085 { | 4085 { |
4086 if (n2 == 0) /* give an error message? */ | 4086 if (n2 == 0) /* give an error message? */ |
4087 { | 4087 { |
4088 #ifdef FEAT_NUM64 | 4088 #ifdef FEAT_NUM64 |
4089 if (n1 == 0) | 4089 if (n1 == 0) |
4090 n1 = -0x7fffffffffffffff - 1; /* similar to NaN */ | 4090 n1 = -0x7fffffffffffffffLL - 1; /* similar to NaN */ |
4091 else if (n1 < 0) | 4091 else if (n1 < 0) |
4092 n1 = -0x7fffffffffffffff; | 4092 n1 = -0x7fffffffffffffffLL; |
4093 else | 4093 else |
4094 n1 = 0x7fffffffffffffff; | 4094 n1 = 0x7fffffffffffffffLL; |
4095 #else | 4095 #else |
4096 if (n1 == 0) | 4096 if (n1 == 0) |
4097 n1 = -0x7fffffffL - 1L; /* similar to NaN */ | 4097 n1 = -0x7fffffffL - 1L; /* similar to NaN */ |
4098 else if (n1 < 0) | 4098 else if (n1 < 0) |
4099 n1 = -0x7fffffffL; | 4099 n1 = -0x7fffffffL; |