mirror of
https://github.com/jackc/pgx.git
synced 2025-05-30 19:22:19 +00:00
Fix bug with bulid with env: GOOS=linux GOARCH=386
Without this fix not build with env: GOOS=linux GOARCH=386
This commit is contained in:
parent
e2c9d2f13a
commit
962bb4d8cd
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user