forked from OSchip/llvm-project
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
12d13efa21
commit
9905541070
|
@ -131,7 +131,8 @@ typedef signed int ssize_t;
|
||||||
# define INT32_MAX 2147483647
|
# define INT32_MAX 2147483647
|
||||||
#endif
|
#endif
|
||||||
#ifndef INT32_MIN
|
#ifndef INT32_MIN
|
||||||
# define INT32_MIN -2147483648
|
/* MSC treats -2147483648 as -(2147483648U). */
|
||||||
|
# define INT32_MIN (-INT32_MAX - 1)
|
||||||
#endif
|
#endif
|
||||||
#ifndef UINT32_MAX
|
#ifndef UINT32_MAX
|
||||||
# define UINT32_MAX 4294967295U
|
# define UINT32_MAX 4294967295U
|
||||||
|
|
Loading…
Reference in New Issue