https://git.reactos.org/?p=reactos.git;a=commitdiff;h=525d19d46955947492486…
commit 525d19d4695594749248617d8e7a069fff894856
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Mar 19 10:15:31 2021 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Fri Mar 19 11:04:19 2021 +0100
[NDK][XDK] Use decimal literals for MINxxxx defines
Because myLongLong < MINLONG is supposed to behave like you'd expect
---
sdk/include/ndk/umtypes.h | 12 ++++++------
sdk/include/xdk/ntbasedef.h | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/sdk/include/ndk/umtypes.h b/sdk/include/ndk/umtypes.h
index 3037151b6b0..82b32eae971 100644
--- a/sdk/include/ndk/umtypes.h
+++ b/sdk/include/ndk/umtypes.h
@@ -108,12 +108,12 @@ Author:
//
// Limits
//
-#define MINCHAR 0x80
-#define MAXCHAR 0x7f
-#define MINSHORT 0x8000
-#define MAXSHORT 0x7fff
-#define MINLONG 0x80000000
-#define MAXLONG 0x7fffffff
+#define MINCHAR (-128)
+#define MAXCHAR 127
+#define MINSHORT (-32768)
+#define MAXSHORT 32767
+#define MINLONG (-2147483648)
+#define MAXLONG 2147483647
#define MAXUCHAR 0xff
#define MAXUSHORT 0xffff
#define MAXULONG 0xffffffff
diff --git a/sdk/include/xdk/ntbasedef.h b/sdk/include/xdk/ntbasedef.h
index 91c926257fb..50f8b9314f1 100644
--- a/sdk/include/xdk/ntbasedef.h
+++ b/sdk/include/xdk/ntbasedef.h
@@ -735,12 +735,12 @@ extern "C++" { \
#define COMPILETIME_OR_5FLAGS(a,b,c,d,e)
((UINT)(a)|(UINT)(b)|(UINT)(c)|(UINT)(d)|(UINT)(e))
/* Type Limits */
-#define MINCHAR 0x80
-#define MAXCHAR 0x7f
-#define MINSHORT 0x8000
-#define MAXSHORT 0x7fff
-#define MINLONG 0x80000000
-#define MAXLONG 0x7fffffff
+#define MINCHAR (-128)
+#define MAXCHAR 127
+#define MINSHORT (-32768)
+#define MAXSHORT 32767
+#define MINLONG (-2147483648)
+#define MAXLONG 2147483647
$if(_NTDEF_)
#define MAXUCHAR 0xff
#define MAXUSHORT 0xffff