]> Cypherpunks repositories - gostls13.git/commit
math/pow10: remove overlapping boundary (n=0)
authormohanson <mohanson@outlook.com>
Mon, 15 Dec 2025 07:06:48 +0000 (15:06 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 23 Jan 2026 16:26:22 +0000 (08:26 -0800)
commitc04335e33a6915ae4edc9c9f94a909a46557f99a
tree128afad12536e23d5db30eacc3e96f605b817178
parenta1150b5017b789c6dc22d2c3939f7df10baf3dff
math/pow10: remove overlapping boundary (n=0)

Both the first and second conditions include n=0, creating an
implicit logic that relies on order of evaluation.

Change-Id: Iefbc25a676242fabf272203a3e845363585bff56
Reviewed-on: https://go-review.googlesource.com/c/go/+/730060
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/math/pow10.go