summaryrefslogtreecommitdiff
path: root/rjit_c.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-11 20:46:58 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-11 20:47:08 -0800
commit46a3634bcf1df7b39320cab6b6324f35cd5dd073 (patch)
tree7a430396f74dd24b1fb92ad6088bc7537f93ac31 /rjit_c.c
parentc6bea54c70ca4deabba1b028b1dd0dbdc7c0680c (diff)
downloadruby-46a3634bcf1df7b39320cab6b6324f35cd5dd073.tar.gz
RJIT: Use SIZET macros instead of original PTR ones
Diffstat (limited to 'rjit_c.c')
-rw-r--r--rjit_c.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/rjit_c.c b/rjit_c.c
index 7fde510acb..90f39de883 100644
--- a/rjit_c.c
+++ b/rjit_c.c
@@ -206,14 +206,6 @@ rjit_get_proc_ptr(VALUE procv)
return proc;
}
-#if SIZEOF_LONG == SIZEOF_VOIDP
-#define NUM2PTR(x) NUM2ULONG(x)
-#define PTR2NUM(x) ULONG2NUM(x)
-#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
-#define NUM2PTR(x) NUM2ULL(x)
-#define PTR2NUM(x) ULL2NUM(x)
-#endif
-
// An offsetof implementation that works for unnamed struct and union.
// Multiplying 8 for compatibility with libclang's offsetof.
#define OFFSETOF(ptr, member) RB_SIZE2NUM(((char *)&ptr.member - (char*)&ptr) * 8)