diff options
author | tmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-24 00:22:19 +0000 |
---|---|---|
committer | tmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-24 00:22:19 +0000 |
commit | 34176b023eb42478bad22481d90d6223b5a31d48 (patch) | |
tree | c184e13d53d36d801c3483b366ab1962db08d688 /ext/objspace | |
parent | 80c4b4b3d72c7841b9c2453713a5b96258f2ca90 (diff) | |
download | ruby-34176b023eb42478bad22481d90d6223b5a31d48.tar.gz |
* ext/objspace/objspace_dump.c: test fixes and win32 compatibility
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r-- | ext/objspace/objspace_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index df1395d07a..1b68d9ab8b 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -240,11 +240,11 @@ dump_object(VALUE obj, struct dump_config *dc) dump_append(dc, ", \"file\":\"%s\", \"line\":%lu", ainfo->path, ainfo->line); if (RTEST(ainfo->mid)) dump_append(dc, ", \"method\":\"%s\"", rb_id2name(SYM2ID(ainfo->mid))); - dump_append(dc, ", \"generation\":%zu", ainfo->generation); + dump_append(dc, ", \"generation\":%"PRIuSIZE, ainfo->generation); } if ((memsize = rb_obj_memsize_of(obj)) > 0) - dump_append(dc, ", \"memsize\":%zu", memsize); + dump_append(dc, ", \"memsize\":%"PRIuSIZE, memsize); dump_append(dc, "}\n"); } |