Fix mrb_immediate_p(MRB_TT_FREE) to return false; ref #4679

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-08-31 23:19:08 +09:00
parent d48a2190bf
commit 1a4ea94bc7
3 changed files with 6 additions and 6 deletions
-1
View File
@@ -20,7 +20,6 @@
#endif
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
#ifdef MRB_ENDIAN_BIG
#define MRB_ENDIAN_LOHI(a,b) a b
-1
View File
@@ -8,7 +8,6 @@
#define MRUBY_BOXING_NO_H
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
union mrb_value_union {
#ifndef MRB_WITHOUT_FLOAT
+6 -4
View File
@@ -108,13 +108,13 @@ static const unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
enum mrb_vtype {
MRB_TT_FALSE = 0, /* 0 */
MRB_TT_FREE, /* 1 */
MRB_TT_TRUE, /* 2 */
MRB_TT_TRUE, /* 1 */
MRB_TT_FLOAT, /* 2 */
MRB_TT_FIXNUM, /* 3 */
MRB_TT_SYMBOL, /* 4 */
MRB_TT_UNDEF, /* 5 */
MRB_TT_FLOAT, /* 6 */
MRB_TT_CPTR, /* 7 */
MRB_TT_CPTR, /* 6 */
MRB_TT_FREE, /* 7 */
MRB_TT_OBJECT, /* 8 */
MRB_TT_CLASS, /* 9 */
MRB_TT_MODULE, /* 10 */
@@ -161,6 +161,8 @@ typedef void mrb_value;
#include "boxing_no.h"
#endif
#define MRB_TT_HAS_BASIC MRB_TT_FREE
#ifndef mrb_immediate_p
#define mrb_immediate_p(o) (mrb_type(o) < MRB_TT_HAS_BASIC)
#endif