value.h: fixed address comparison on macOS.

parent cbfaa5e2
...@@ -427,7 +427,7 @@ mrb_ro_data_p(const char *p) ...@@ -427,7 +427,7 @@ mrb_ro_data_p(const char *p)
static inline mrb_bool static inline mrb_bool
mrb_ro_data_p(const char *p) mrb_ro_data_p(const char *p)
{ {
return (char*)get_edata() < p && p < (char*)get_end(); return (char*)get_etext() < p && p < (char*)get_edata();
} }
#else #else
# define mrb_ro_data_p(p) FALSE # define mrb_ro_data_p(p) FALSE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment