]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: simplify bool expression
authorIskander Sharipov <quasilyte@gmail.com>
Mon, 17 Sep 2018 22:13:04 +0000 (01:13 +0300)
committerRobert Griesemer <gri@golang.org>
Tue, 18 Sep 2018 05:23:14 +0000 (05:23 +0000)
Change-Id: Idcd79788e64947a927af662b6394ac7218e62ba8
Reviewed-on: https://go-review.googlesource.com/135836
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/walk.go

index 2993e08fc2b688e9c04291fc440a1c023183209f..2c0bc4b22e74e9a87c75d5ceec930f5ec2bdeed4 100644 (file)
@@ -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))