From 0343750b62b11edfee151cf22675c10f19742db3 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 May 2008 02:36:09 +0000 Subject: * include/ruby/ruby.h (PRI[diouxX]VALUE): printf format for VALUE. * gc.c (assign_heap_slot): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index bcb671f700..9bea1240f4 100644 --- a/gc.c +++ b/gc.c @@ -570,7 +570,7 @@ assign_heap_slot(rb_objspace_t *objspace) hi = mid; } else { - rb_bug("same heap slot is allocated: %p at %ld", membase, mid); + rb_bug("same heap slot is allocated: %p at %"PRIuVALUE, membase, (VALUE)mid); } } if (hi < heaps_used) { -- cgit v1.2.3