restore 1.6 compat (#61)

This commit is contained in:
Jacek Sieka 2024-10-29 17:20:30 +01:00 committed by GitHub
parent c246d00eaa
commit cf8d4d2263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ jobs:
cpu: arm64
- os: windows
cpu: amd64
branch: [version-2-0, version-2-2, devel]
branch: [version-1-6, version-2-0, version-2-2, devel]
include:
- target:
os: linux

View File

@ -59,7 +59,7 @@ func openArrayToPair*(a: var openArray[byte]): (ptr byte, Natural) =
if a.len > 0:
(addr a[0], Natural(a.len))
else:
(nil, 0)
(nil, Natural(0))
template allocationStart*(page: PageRef): ptr byte =
baseAddr page.data[]