From e7995cb0f8c943bd2b836ba834baae52e922eb1d Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 22 Apr 2016 09:47:34 +0000 Subject: * variable.c: use uint32_t instead of long to avoid confusion about the type of ivtbl->numiv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b4bb7267de..89bf0192c1 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -909,7 +909,7 @@ struct RObject { struct RBasic basic; union { struct { - long numiv; /* only uses 32-bits */ + uint32_t numiv; VALUE *ivptr; void *iv_index_tbl; /* shortcut for RCLASS_IV_INDEX_TBL(rb_obj_class(obj)) */ } heap; -- cgit v1.2.3