restore 1.6 compat (#61)
This commit is contained in:
parent
c246d00eaa
commit
cf8d4d2263
|
@ -28,7 +28,7 @@ jobs:
|
||||||
cpu: arm64
|
cpu: arm64
|
||||||
- os: windows
|
- os: windows
|
||||||
cpu: amd64
|
cpu: amd64
|
||||||
branch: [version-2-0, version-2-2, devel]
|
branch: [version-1-6, version-2-0, version-2-2, devel]
|
||||||
include:
|
include:
|
||||||
- target:
|
- target:
|
||||||
os: linux
|
os: linux
|
||||||
|
|
|
@ -59,7 +59,7 @@ func openArrayToPair*(a: var openArray[byte]): (ptr byte, Natural) =
|
||||||
if a.len > 0:
|
if a.len > 0:
|
||||||
(addr a[0], Natural(a.len))
|
(addr a[0], Natural(a.len))
|
||||||
else:
|
else:
|
||||||
(nil, 0)
|
(nil, Natural(0))
|
||||||
|
|
||||||
template allocationStart*(page: PageRef): ptr byte =
|
template allocationStart*(page: PageRef): ptr byte =
|
||||||
baseAddr page.data[]
|
baseAddr page.data[]
|
||||||
|
|
Loading…
Reference in New Issue