diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-18 01:44:52 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-18 01:44:52 +0000 |
commit | da3cdd2ddf9cabc4f50ee7461c04a24333c4eb34 (patch) | |
tree | 98e677b76940804216bd719c303999cf6e78a6c0 /gc.c | |
parent | 72fa4d34c09a59c6127365832e8f04b50fdd9916 (diff) |
* gc.c (gc_lazy_sweep): clean a warning.
"suggest parentheses around assignment used as truth value"
* transcode_data.h (getGB4bt1): clean a warning.
"suggest parentheses around arithmetic in operand of |"
* transcode_data.h (getGB4bt3): ditto.
* vm.c (thread_free): clean a warning. "format 'p' expects type
'void *', but argument 3 has type 'struct rb_mutex_struct *'"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2042,7 +2042,8 @@ gc_lazy_sweep(rb_objspace_t *objspace) GC_PROF_TIMER_START; GC_PROF_SWEEP_TIMER_START; - if (res = lazy_sweep(objspace)) { + res = lazy_sweep(objspace); + if (res) { GC_PROF_SWEEP_TIMER_STOP; GC_PROF_SET_MALLOC_INFO; GC_PROF_TIMER_STOP(Qfalse); |