mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
DataTypes.h.cmake: Tweak INT32_MIN for MSVC. MSC treats -2147483648 as -(2147483648U).
It caused an unexpected behavior since r137254. llvm-svn: 137365
This commit is contained in:
parent
42056f92f5
commit
df74220667
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user