diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-29 14:09:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 14:09:37 +0900 |
commit | 4e4c4fab3c25a056688939ae8e003a049fc401ee (patch) | |
tree | a09f9697b8ce7dd3428e3cf15c1f13557873b7aa /yjit_iface.c | |
parent | 5ca51ddde81cd7f338d0dd495ceb8569def60647 (diff) | |
download | ruby-4e4c4fab3c25a056688939ae8e003a049fc401ee.tar.gz |
YJIT: Use proper size prefix and conversion where IL32LLP64
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index 9240e3f1c9..339c5cd455 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -1180,7 +1180,8 @@ rb_yjit_call_threshold(void) return rb_yjit_opts.call_threshold; } -# define PTR2NUM(x) (LONG2NUM((long)(x))) +/* assume sizeof(void*) == sizeof(size_t) */ +# define PTR2NUM(x) (SSIZET2NUM((ssize_t)(x))) /** * call-seq: block.id -> unique_id |