OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796d6b7
)
DataTypes.h.cmake: Tweak INT32_MIN for MSVC. MSC treats -2147483648 as -(2147483648U).
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 11 Aug 2011 21:59:55 +0000
(21:59 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 11 Aug 2011 21:59:55 +0000
(21:59 +0000)
It caused an unexpected behavior since r137254.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137365
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/DataTypes.h.cmake
patch
|
blob
|
history
diff --git
a/include/llvm/Support/DataTypes.h.cmake
b/include/llvm/Support/DataTypes.h.cmake
index
72c4518
..
260ed9b
100644
(file)
--- a/
include/llvm/Support/DataTypes.h.cmake
+++ b/
include/llvm/Support/DataTypes.h.cmake
@@
-131,7
+131,8
@@
typedef signed int ssize_t;
# define INT32_MAX 2147483647
#endif
#ifndef INT32_MIN
-# define INT32_MIN -2147483648
+/* MSC treats -2147483648 as -(2147483648U). */
+# define INT32_MIN (-INT32_MAX - 1)
#endif
#ifndef UINT32_MAX
# define UINT32_MAX 4294967295U