]> Cypherpunks repositories - gostls13.git/commit
cmd/*: remove negative uint checks
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 18 Aug 2017 15:05:33 +0000 (16:05 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 18 Aug 2017 18:45:05 +0000 (18:45 +0000)
commit943dd0fe332ebc72a4b02b2a9b6e4344e4cda340
tree60f2431f25a2de8ad28080cf1845467a7cc2d6cf
parent776c33ee5ed67a00bd05912bd15a7c8062daab88
cmd/*: remove negative uint checks

All of these are uints of different sizes, so checking >= 0 or < 0 are
effectively no-ops.

Found with staticcheck.

Change-Id: I16ac900eb7007bc8f9018b302136d42e483a4180
Reviewed-on: https://go-review.googlesource.com/56950
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/fmt.go
src/cmd/internal/obj/sym.go
src/cmd/trace/trace.go