fix Nim 1.6 deprecation warning (#48)

This commit is contained in:
tersec 2022-07-01 17:48:29 +00:00 committed by GitHub
parent dbe0f1ae51
commit 5a7f9a86cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ proc writeValue*(w: var JsonWriter, value: auto) =
w.stream.writeText ord(value) w.stream.writeText ord(value)
elif value is range: elif value is range:
when low(value) < 0: when low(typeof(value)) < 0:
w.stream.writeText int64(value) w.stream.writeText int64(value)
else: else:
w.stream.writeText uint64(value) w.stream.writeText uint64(value)