From: Gustavo Niemeyer Date: Fri, 17 Feb 2012 19:13:16 +0000 (-0200) Subject: runtime: remove use of ?: X-Git-Tag: weekly.2012-02-22~146 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ce020ffacd8c43e1682e2c83db6d1e7f0c305eea;p=gostls13.git runtime: remove use of ?: Fixes #3061. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5656089 --- diff --git a/src/pkg/runtime/mheap.c b/src/pkg/runtime/mheap.c index a40a14512b..761246a47f 100644 --- a/src/pkg/runtime/mheap.c +++ b/src/pkg/runtime/mheap.c @@ -346,7 +346,10 @@ runtime·MHeap_Scavenger(void) // we hand it back to the operating system. limit = 5*60*1e9; // Make wake-up period small enough for the sampling to be correct. - tick = forcegc < limit ? forcegc/2 : limit/2; + if(forcegc < limit) + tick = forcegc/2; + else + tick = limit/2; trace = false; env = runtime·getenv("GOGCTRACE");