fix 32-bit timer overflow and typo in base64 error message

This commit is contained in:
Dustin Brody 2022-03-17 21:13:32 +00:00
commit 9a4a25e3e0
No known key found for this signature in database
GPG key ID: 3D7A11A0156519DC
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ when fsAsyncSupport:
template timeit(timerVar: var Nanos, code: untyped) =
let t0 = getTicks()
code
timerVar = int(getTicks() - t0) div 1000000
timerVar = int64(getTicks() - t0) div 1000000
proc getOutput(sp: AsyncInputStream, T: type string): Future[string] {.async.} =
# this proc is a quick hack to let the test pass