Make the default integer size to be MRB_INT64 on 64bit systems; close #3800

Unless `MRB_NAN_BOXING` is specified.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-08-31 14:58:54 +09:00
parent 71357ff1d8
commit f0f4a1088a
+11
View File
@@ -34,6 +34,17 @@
/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 */
//#define MRB_INT64
/* if no specific integer type is chosen */
#if !defined(MRB_INT16) && !defined(MRB_INT32) && !defined(MRB_INT64)
# if defined(MRB_64BIT) && !defined(MRB_NAN_BOXING)
/* Use 64bit integers on 64bit architecture (without MRB_NAN_BOXING) */
# define MRB_INT64
# else
/* Otherwise use 32bit integers */
# define MRB_INT32
# endif
#endif
/* represent mrb_value in boxed double; conflict with MRB_USE_FLOAT */
//#define MRB_NAN_BOXING