From 0673c34537f17801600241c44aad2ceecfb4298e Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 4 Sep 2014 10:51:38 -0700 Subject: [PATCH] go.tools/cmd/stringer: Fix build on 32bit OSs. LGTM=r R=golang-codereviews, gri, r CC=golang-codereviews https://golang.org/cl/138040043 --- cmd/stringer/stringer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/stringer/stringer.go b/cmd/stringer/stringer.go index f3e60a9e47..a51cf73b49 100644 --- a/cmd/stringer/stringer.go +++ b/cmd/stringer/stringer.go @@ -454,10 +454,9 @@ func usize(n int) int { return 8 case n < 1<<16: return 16 - case n < 1<<32: - return 32 default: - return 64 + // 2^32 is enough constants for anyone. + return 32 } }