commit | 0a8720580983c3a39c6c46fe08a2136a04bc118f | [log] [tgz] |
---|---|---|
author | Iskander Sharipov <quasilyte@gmail.com> | Tue Sep 18 01:13:04 2018 +0300 |
committer | Robert Griesemer <gri@golang.org> | Tue Sep 18 05:23:14 2018 +0000 |
tree | 07ba64ead6d238174183af88c913b73dabb0cc90 | |
parent | f082dbfd4f23b0c95ee1de5c2b091dad2ff6d930 [diff] |
cmd/compile/internal/gc: simplify bool expression 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>
diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index 2993e08..2c0bc4b 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go
@@ -1418,7 +1418,7 @@ // 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))