Peter Dons Tychsen : msvcrt: Do not use casting in min/max constants.
Alexandre Julliard
julliard at winehq.org
Mon Aug 5 14:58:35 CDT 2019
Module: wine
Branch: master
Commit: b72d6d1d86fccae000241809a0da37269c9d5632
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b72d6d1d86fccae000241809a0da37269c9d5632
Author: Peter Dons Tychsen <pdt at dontech.dk>
Date: Sun Jul 21 23:38:02 2019 +0200
msvcrt: Do not use casting in min/max constants.
Signed-off-by: Peter Dons Tychsen <pdt at dontech.dk>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/msvcrt/limits.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/msvcrt/limits.h b/include/msvcrt/limits.h
index 13bab86..7f32f08 100644
--- a/include/msvcrt/limits.h
+++ b/include/msvcrt/limits.h
@@ -30,13 +30,13 @@
#define LONG_MAX 0x7fffffffL
#define ULONG_MAX 0xffffffffUL
-#define LLONG_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
+#define LLONG_MAX 0x7fffffffffffffffLL
#define LLONG_MIN (-LLONG_MAX-1)
-#define ULLONG_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
+#define ULLONG_MAX 0xffffffffffffffffULL
-#define _I64_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
+#define _I64_MAX 0x7fffffffffffffffLL
#define _I64_MIN (-_I64_MAX-1)
-#define _UI64_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
+#define _UI64_MAX 0xffffffffffffffffULL
#define I64_MIN _I64_MIN
#define I64_MAX _I64_MAX
More information about the wine-cvs
mailing list