value.h: fixed address comparison on macOS.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-07 18:51:04 +09:00
parent cbfaa5e20f
commit 1d1a89874f
+1 -1
View File
@@ -427,7 +427,7 @@ mrb_ro_data_p(const char *p)
static inline mrb_bool
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
# define mrb_ro_data_p(p) FALSE