Skip to content
This repository has been archived by the owner on Jul 21, 2018. It is now read-only.

Commit

Permalink
Fix overflow on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Jun 30, 2018
1 parent 60fb165 commit f4089a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func init() {
steamID = t.Steamid
token = t.Token
accountID, err = strconv.Atoi(steamID)
accountID = accountID & 0xFFFFFFFF
account64 := int64(accountID) & 0xFFFFFFFF
accountID = int(account64)
if err != nil {
log.Fatal("accountid", err)
}
Expand Down

0 comments on commit f4089a4

Please sign in to comment.