Properly define INTPTR_MIN and INTPTR_MAX on x86_64 platforms.

This commit is contained in:
Jesse D. McDonald 2011-03-27 19:08:51 -05:00
parent b6271bf13e
commit 3b56fdb5fc
1 changed files with 7 additions and 2 deletions

9
gc.h
View File

@ -28,8 +28,13 @@ typedef double native_float_t;
/* The INTPTR_ macros are defined, but not given values. */
# undef INTPTR_MIN
# undef INTPTR_MAX
# define INTPTR_MIN INT32_MIN
# define INTPTR_MAX INT32_MAX
# ifdef __x86_64__
# define INTPTR_MIN INT64_MIN
# define INTPTR_MAX INT64_MAX
# else
# define INTPTR_MIN INT32_MIN
# define INTPTR_MAX INT32_MAX
# endif
#endif
#define FIXNUM_MIN (INTPTR_MIN/2)