Properly define INTPTR_MIN and INTPTR_MAX on x86_64 platforms.
This commit is contained in:
parent
b6271bf13e
commit
3b56fdb5fc
9
gc.h
9
gc.h
|
|
@ -28,8 +28,13 @@ typedef double native_float_t;
|
||||||
/* The INTPTR_ macros are defined, but not given values. */
|
/* The INTPTR_ macros are defined, but not given values. */
|
||||||
# undef INTPTR_MIN
|
# undef INTPTR_MIN
|
||||||
# undef INTPTR_MAX
|
# undef INTPTR_MAX
|
||||||
# define INTPTR_MIN INT32_MIN
|
# ifdef __x86_64__
|
||||||
# define INTPTR_MAX INT32_MAX
|
# define INTPTR_MIN INT64_MIN
|
||||||
|
# define INTPTR_MAX INT64_MAX
|
||||||
|
# else
|
||||||
|
# define INTPTR_MIN INT32_MIN
|
||||||
|
# define INTPTR_MAX INT32_MAX
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FIXNUM_MIN (INTPTR_MIN/2)
|
#define FIXNUM_MIN (INTPTR_MIN/2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue