summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-09-07 18:51:04 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-07 18:51:04 +0900
commit1d1a89874fe757382b0137cbd102bdf6fb243340 (patch)
tree843f71ed18243bec94aea3dc6338d871306a7717
parentcbfaa5e20fe15680a5afe99394b99dc2db6b51f5 (diff)
downloadmruby-1d1a89874fe757382b0137cbd102bdf6fb243340.tar.gz
mruby-1d1a89874fe757382b0137cbd102bdf6fb243340.zip
value.h: fixed address comparison on macOS.
-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 22a826385..5a4ef5e2b 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -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