1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:14:46 -07:00

go.tools/cmd/stringer: Fix build on 32bit OSs.

LGTM=r
R=golang-codereviews, gri, r
CC=golang-codereviews
https://golang.org/cl/138040043
This commit is contained in:
Yasuhiro Matsumoto 2014-09-04 10:51:38 -07:00 committed by Rob Pike
parent de5d818681
commit 0673c34537

View File

@ -454,10 +454,9 @@ func usize(n int) int {
return 8 return 8
case n < 1<<16: case n < 1<<16:
return 16 return 16
case n < 1<<32:
return 32
default: default:
return 64 // 2^32 is enough constants for anyone.
return 32
} }
} }