diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2024-01-29 20:44:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 20:44:43 +0100 |
commit | a3a18fbcce29c84eb96c3db9c723da951e74ba91 (patch) | |
tree | 0e4ece384cc4c566703c72ca9ae9652959ac6b9b /syncapi/types/types.go | |
parent | 87f028db27e62cca71dadc5988dc8d37f5f20af4 (diff) |
Fix x86 tests (#3317)
x86 tests broke with #3298
(Not exactly the tests modified here, but
`TestMessageHistoryVisibility`)
Diffstat (limited to 'syncapi/types/types.go')
-rw-r--r-- | syncapi/types/types.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/syncapi/types/types.go b/syncapi/types/types.go index bca11855..26faf7c0 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -286,8 +286,8 @@ func NewTopologyTokenFromString(tok string) (token TopologyToken, err error) { if i > len(positions) { break } - var pos int - pos, err = strconv.Atoi(p) + var pos int64 + pos, err = strconv.ParseInt(p, 10, 64) if err != nil { return } @@ -318,8 +318,8 @@ func NewStreamTokenFromString(tok string) (token StreamingToken, err error) { if i >= len(positions) { break } - var pos int - pos, err = strconv.Atoi(p) + var pos int64 + pos, err = strconv.ParseInt(p, 10, 64) if err != nil { err = ErrMalformedSyncToken return |