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).
This commit is contained in:
Yusuke Endoh 2019-12-10 17:10:23 +09:00
parent e27d2013db
commit 60c53ff6ee
3 changed files with 10 additions and 10 deletions

2
iseq.c
View file

@ -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)