diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-19 23:23:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-19 23:23:18 +0900 |
| commit | 16fe040479325467d6dc3ad0906b79b7ddce0433 (patch) | |
| tree | d9db55e9b133b9d1054af87e7d2f92ac9597a282 | |
| parent | e5559184e0dae17f3dbd52964f891d43ea56125b (diff) | |
| download | mruby-16fe040479325467d6dc3ad0906b79b7ddce0433.tar.gz mruby-16fe040479325467d6dc3ad0906b79b7ddce0433.zip | |
mruby/value.h: `MRB_TT_CPTR` is immediate with `MRB_NO_BOXING`.
The issue is reported by @shuujii.
| -rw-r--r-- | include/mruby/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h index 632bbf378..4831b55af 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -177,7 +177,7 @@ struct RCptr { #endif #ifndef mrb_immediate_p -#define mrb_immediate_p(o) (mrb_type(o) < MRB_TT_CPTR) +#define mrb_immediate_p(o) (mrb_type(o) <= MRB_TT_CPTR) #endif #ifndef mrb_integer_p #define mrb_integer_p(o) (mrb_type(o) == MRB_TT_INTEGER) |
