From d49a78dd734e07ab34de47d5be1c3d1bfe77094d Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Thu, 3 Aug 2017 14:17:28 -0500 Subject: [PATCH] Fix compilation on 32-bit platform fixes #295 --- values.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/values.go b/values.go index 86ae3afe..780fca68 100644 --- a/values.go +++ b/values.go @@ -74,7 +74,7 @@ func convertSimpleArgument(ci *pgtype.ConnInfo, arg interface{}) (interface{}, e } return int64(arg), nil case uint: - if arg > math.MaxInt64 { + if uint64(arg) > math.MaxInt64 { return nil, errors.Errorf("arg too big for int64: %v", arg) } return int64(arg), nil