diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 01:12:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-29 01:12:38 +0000 |
commit | 790abc5991837b59e0682388c318c32cb1628425 (patch) | |
tree | 78e35ca53e9c963587032dcbe5f8717a6ee2801a /gc.c | |
parent | fc130468c7e062ad544797dabaf76c372419a87a (diff) | |
download | ruby-790abc5991837b59e0682388c318c32cb1628425.tar.gz |
* 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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |