summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-19 13:08:39 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-08-19 13:08:39 +0900
commit6f305c01a244ff671ba3674f66519e37c38c4ee2 (patch)
treefc3779226aece19b8fe0d0a39933d47152d5c1f8 /include
parent959383df75091668bfe4cea5529df676154242e3 (diff)
downloadmruby-6f305c01a244ff671ba3674f66519e37c38c4ee2.tar.gz
mruby-6f305c01a244ff671ba3674f66519e37c38c4ee2.zip
value.h: fixed warnings on `__APPLE__`.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index c90c4cbb5..d139413a9 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -428,11 +428,11 @@ mrb_ro_data_p(const char *p)
return __ehdr_start < p && p < __init_array_start;
}
#elif defined(__APPLE__)
-#include <mach-o/getsect.h>;
+#include <mach-o/getsect.h>
static inline mrb_bool
mrb_ro_data_p(const char *p)
{
- return (void*)get_edata() < p && p < (void*)get_end();
+ return (char*)get_edata() < p && p < (char*)get_end();
}
#else
# define mrb_ro_data_p(p) FALSE