Skip to content

Commit

Permalink
Fix parse uint to use signed integer (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Oct 30, 2023
1 parent 2ddfac5 commit fc90adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/session_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func KeyToId(key string) (SessionId, error) {
}
s := key[len(KeyPrefix):]
s = s[:len(s)-1]
longInt, err := strconv.ParseUint(s, 16, 64)
longInt, err := strconv.ParseInt(s, 16, 64)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit fc90adf

Please sign in to comment.