summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index a73803a14..632bbf378 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_FREE)
+#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)