From: Iskander Sharipov Date: Mon, 17 Sep 2018 22:13:04 +0000 (+0300) Subject: cmd/compile/internal/gc: simplify bool expression X-Git-Tag: go1.12beta1~1065 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0a8720580983c3a39c6c46fe08a2136a04bc118f;p=gostls13.git cmd/compile/internal/gc: simplify bool expression Change-Id: Idcd79788e64947a927af662b6394ac7218e62ba8 Reviewed-on: https://go-review.googlesource.com/135836 Reviewed-by: Keith Randall Reviewed-by: Robert Griesemer --- diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index 2993e08fc2..2c0bc4b22e 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -1418,7 +1418,7 @@ opswitch: // Maximum key and value size is 128 bytes, larger objects // are stored with an indirection. So max bucket size is 2048+eps. if !Isconst(hint, CTINT) || - !(hint.Val().U.(*Mpint).CmpInt64(BUCKETSIZE) > 0) { + hint.Val().U.(*Mpint).CmpInt64(BUCKETSIZE) <= 0 { // var bv bmap bv := temp(bmap(t))