Fix tweet ID parsing bug on 32-bit

This commit is contained in:
Zed 2020-06-04 05:03:25 +02:00
parent f0db3a8bc2
commit 42421e58de
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ proc parseTweet(js: JsonNode): Tweet =
else: discard else: discard
proc finalizeTweet(global: GlobalObjects; id: string): Tweet = proc finalizeTweet(global: GlobalObjects; id: string): Tweet =
let intId = if id.len > 0: parseInt(id) else: 0 let intId = if id.len > 0: parseBiggestInt(id) else: 0
result = global.tweets.getOrDefault(id, Tweet(id: intId)) result = global.tweets.getOrDefault(id, Tweet(id: intId))
if result.quote.isSome: if result.quote.isSome: