mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
arch/sim/include/limits.h: Fix the type of LONG_MIN, LONG_MAX, ULONG_MAX
This commit is contained in:
committed by
Xiang Xiao
parent
e65d5d8c73
commit
51be5c08bf
@@ -74,9 +74,9 @@
|
|||||||
# define LONG_MAX 2147483647L
|
# define LONG_MAX 2147483647L
|
||||||
# define ULONG_MAX 4294967295UL
|
# define ULONG_MAX 4294967295UL
|
||||||
#else
|
#else
|
||||||
# define LONG_MIN (-LLONG_MAX - 1)
|
# define LONG_MIN (-LONG_MAX - 1)
|
||||||
# define LONG_MAX 9223372036854775807LL
|
# define LONG_MAX 9223372036854775807L
|
||||||
# define ULONG_MAX 18446744073709551615ULL
|
# define ULONG_MAX 18446744073709551615UL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LLONG_MIN (-LLONG_MAX - 1)
|
#define LLONG_MIN (-LLONG_MAX - 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user