mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibC: Define correct limits for long
on x86_64
This commit is contained in:
parent
d6ccee4089
commit
3651da6a96
1 changed files with 10 additions and 2 deletions
|
@ -41,10 +41,18 @@
|
|||
|
||||
#define USHRT_MAX 65535
|
||||
|
||||
#define LONG_MAX 2147483647L
|
||||
#ifdef __x86_64__
|
||||
# define LONG_MAX 9223372036854775807L
|
||||
#else
|
||||
# define LONG_MAX 2147483647L
|
||||
#endif
|
||||
#define LONG_MIN (-LONG_MAX - 1L)
|
||||
|
||||
#define ULONG_MAX 4294967295UL
|
||||
#ifdef __x86_64__
|
||||
# define ULONG_MAX 18446744073709551615UL
|
||||
#else
|
||||
# define ULONG_MAX 4294967295UL
|
||||
#endif
|
||||
|
||||
#define LONG_LONG_MAX 9223372036854775807LL
|
||||
#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue