From 60c53ff6ee1eed054fc3d78ad6c06cbfc56900d6 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Tue, 10 Dec 2019 17:10:23 +0900 Subject: vm_core.h (iseq_unique_id): prefer uintptr_t instead of unsigned long It produced a warning about type cast in LLP64 (i.e., windows). --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 4298130b65..f5f8437882 100644 --- a/iseq.c +++ b/iseq.c @@ -427,7 +427,7 @@ rb_iseq_memsize(const rb_iseq_t *iseq) return size; } -static unsigned long fresh_iseq_unique_id = 0; /* -- Remove In 3.0 -- */ +static uintptr_t fresh_iseq_unique_id = 0; /* -- Remove In 3.0 -- */ struct rb_iseq_constant_body * rb_iseq_constant_body_alloc(void) -- cgit v1.2.3