From 847e7c7c3a1f18eda13004eca64d2606bde54d33 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Sun, 4 Dec 2022 14:20:41 +0100 Subject: [chore] Fix a few possible cases of int truncation (#1207) This fixes a couple of cases where due to int being platform dependent a value could get truncated if running on 32bits. --- testrig/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testrig/db.go') diff --git a/testrig/db.go b/testrig/db.go index 83f575a02..6670b91db 100644 --- a/testrig/db.go +++ b/testrig/db.go @@ -83,7 +83,7 @@ func NewTestDB() db.DB { } if alternateDBPort := os.Getenv("GTS_DB_PORT"); alternateDBPort != "" { - port, err := strconv.ParseInt(alternateDBPort, 10, 64) + port, err := strconv.ParseUint(alternateDBPort, 10, 16) if err != nil { panic(err) } -- cgit v1.2.3