=?UTF-8?Q?Iv=C3=A1n=20Matellanes=20?=: include/msvcrt: Ensure integer limits are given the correct type.

Alexandre Julliard julliard at winehq.org
Thu Aug 11 09:37:47 CDT 2016


Module: wine
Branch: master
Commit: 4f71f42910e705ba4d5a59d58bb33f8bdc8ffce0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f71f42910e705ba4d5a59d58bb33f8bdc8ffce0

Author: Iván Matellanes <matellanesivan at gmail.com>
Date:   Wed Aug 10 15:56:06 2016 +0100

include/msvcrt: Ensure integer limits are given the correct type.

Signed-off-by: Iván Matellanes <matellanesivan at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/msvcrt/limits.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/msvcrt/limits.h b/include/msvcrt/limits.h
index ece8c68..1eb1561 100644
--- a/include/msvcrt/limits.h
+++ b/include/msvcrt/limits.h
@@ -22,11 +22,11 @@
 #define SHRT_MAX    0x7fff
 #define USHRT_MAX   0xffff
 
-#define INT_MIN   (-0x80000000)
+#define INT_MIN   (-0x7fffffff - 1)
 #define INT_MAX     0x7fffffff
-#define UINT_MAX    0xffffffff
+#define UINT_MAX    0xffffffffU
 
-#define LONG_MIN  (-0x80000000L)
+#define LONG_MIN  (-0x7fffffffL - 1L)
 #define LONG_MAX    0x7fffffffL
 #define ULONG_MAX   0xffffffffUL
 




More information about the wine-cvs mailing list