You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This CL fixes a bug in rangeint that caused it to replace
const limit = 1e3
for i := 0; i < limit; i++ {}
with
for range limit {} // error: limit is not an integer
Now, we check that the type of limit is assignable to int, and if
not insert an explicit int(limit) conversion.
Updates golang/go#71847 (item d)
Change-Id: Icfaa96e5506fcb5a3e6f3ed8f911bf4bda9cf32f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/653616
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
0 commit comments