From 962bb4d8cd3999cc1316bc362cf2e20f8ce81eda Mon Sep 17 00:00:00 2001 From: Anton Taraev Date: Mon, 18 Aug 2014 02:32:33 +0400 Subject: [PATCH] Fix bug with bulid with env: GOOS=linux GOARCH=386 Without this fix not build with env: GOOS=linux GOARCH=386 --- values.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/values.go b/values.go index 71185999..058f1bad 100644 --- a/values.go +++ b/values.go @@ -517,7 +517,7 @@ func encodeInt8(w *WriteBuf, value interface{}) error { v = int64(value) case uint64: if value > math.MaxInt64 { - return fmt.Errorf("uint64 %d is larger than max int64 %d", value, math.MaxInt64) + return fmt.Errorf("uint64 %d is larger than max int64 %d", value, int64(math.MaxInt64)) } v = int64(value) case int: