fix for pre-1.7

This commit is contained in:
Antonis Geralis 2022-09-04 11:40:26 +03:00
parent 343b634afb
commit e736accc8b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ proc raiseDecoding() {.noinline, noreturn.} =
proc equals*(a, b: openArray[byte]): bool =
if a.len != b.len:
result = false
else: result = equalMem(addr a, addr b, a.len)
else: result = equalMem(unsafeAddr a, unsafeAddr b, a.len)
proc byteSize*(x: string): int {.inline.}
proc byteSize*[S, T](x: array[S, T]): int {.inline.}