From a9c7bad15b55ff731fdbf09378ed5da597ffd525 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 16 Dec 2005 04:49:46 +0000 Subject: refine "unknown data type" message. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index 016b948fe..07b8d76ef 100644 --- a/gc.c +++ b/gc.c @@ -974,9 +974,9 @@ gc_mark_children(VALUE ptr, int lev) break; default: - rb_bug("rb_gc_mark(): unknown data type 0x%lx(%p) %s", + rb_bug("rb_gc_mark(): unknown data type 0x%lx (%p) %s", obj->as.basic.flags & T_MASK, obj, - is_pointer_to_heap(obj) ? "corrupted object" : "non object"); + is_pointer_to_heap(obj) ? "corrupted object" : "not a pointer to heap"); } } -- cgit