From 4d4a45fc349091e47d8e2e4f8e1deaecbb8ffd30 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Fri, 8 Aug 2014 10:39:51 -0500 Subject: [PATCH] Fix error message for too big for int32 --- values.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/values.go b/values.go index f5e6c97d..65af3568 100644 --- a/values.go +++ b/values.go @@ -652,22 +652,22 @@ func encodeInt4(w *WriteBuf, value interface{}) error { v = int32(value) case uint32: if value > math.MaxInt32 { - return fmt.Errorf("%T %d is larger than max int64 %d", value, value, math.MaxInt32) + return fmt.Errorf("%T %d is larger than max int32 %d", value, value, math.MaxInt32) } v = int32(value) case int64: if value > math.MaxInt32 { - return fmt.Errorf("%T %d is larger than max int64 %d", value, value, math.MaxInt32) + return fmt.Errorf("%T %d is larger than max int32 %d", value, value, math.MaxInt32) } v = int32(value) case uint64: if value > math.MaxInt32 { - return fmt.Errorf("%T %d is larger than max int64 %d", value, value, math.MaxInt32) + return fmt.Errorf("%T %d is larger than max int32 %d", value, value, math.MaxInt32) } v = int32(value) case int: if value > math.MaxInt32 { - return fmt.Errorf("%T %d is larger than max int64 %d", value, value, math.MaxInt32) + return fmt.Errorf("%T %d is larger than max int32 %d", value, value, math.MaxInt32) } v = int32(value) default: