From 3738fe3333e614afba407e64aded6535a09856cc 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 --- ext/objspace/objspace_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/objspace') diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 3b73b81499..a3f637b543 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -272,7 +272,7 @@ dump_object(VALUE obj, struct dump_config *dc) break; case T_OBJECT: - dump_append(dc, ", \"ivars\":%ld", ROBJECT_NUMIV(obj)); + dump_append(dc, ", \"ivars\":%u", ROBJECT_NUMIV(obj)); break; case T_FILE: -- cgit v1.2.3