mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:52:25 -05:00
[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.
This commit is contained in:
parent
bc917a4085
commit
847e7c7c3a
9 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue