mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
value.h: fixed address comparison on macOS.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user