1
0
mirror of https://github.com/jackc/pgx.git synced 2025-04-27 21:25:53 +00:00

Fix compilation on 32-bit platform

fixes 
This commit is contained in:
Jack Christensen 2017-08-03 14:17:28 -05:00
parent 511b90478f
commit d49a78dd73

@ -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