From 790abc5991837b59e0682388c318c32cb1628425 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 May 2010 01:12:38 +0000 Subject: * gc.c (GC_PROF_TIMER_STOP): regularize `marked' to suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 032f093b87..b18cb7ae11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat May 29 10:12:36 2010 Nobuyoshi Nakada + + * gc.c (GC_PROF_TIMER_STOP): regularize `marked' to suppress + warnings. + Sat May 29 09:34:32 2010 Nobuyoshi Nakada * test/ruby/envutil.rb: fix for --disable-gems. diff --git a/gc.c b/gc.c index 9cc371d7d0..e2a161cd7e 100644 --- a/gc.c +++ b/gc.c @@ -166,8 +166,8 @@ getrusage_time(void) gc_time = getrusage_time() - gc_time;\ if (gc_time < 0) gc_time = 0;\ objspace->profile.record[count].gc_time = gc_time;\ - objspace->profile.record[count].is_marked = marked;\ - GC_PROF_SET_HEAP_INFO(objspace->profile.record[count]);\ + objspace->profile.record[count].is_marked = !!(marked);\ + GC_PROF_SET_HEAP_INFO(objspace->profile.record[count]);\ objspace->profile.count++;\ }\ } while(0) -- cgit v1.2.3