Replace ByteAddress with uint

This commit is contained in:
Emery Hemingway 2023-08-05 20:29:09 +01:00
parent f78308765e
commit ce6d97c1d3
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ func isEmpty(cont: Continuation): bool =
cont.cache.len == 0 and cont.leafMap.len == 0
proc `$`(x: Leaf|Continuation): string =
cast[ByteAddress](x[].unsafeAddr).toHex
cast[uint](x[].unsafeAddr).toHex
type
ContinuationProc = proc (c: Continuation; v: Value) {.gcsafe.}
@ -119,7 +119,7 @@ func isEmpty(node: Node): bool =
node.continuation.isEmpty and node.edges.len == 0
proc `$`(node: Node): string =
$(cast[ByteAddress](unsafeAddr node[]) and 0xffffff)
$(cast[uint](unsafeAddr node[]) and 0xffffff)
type TermStack = seq[Value]

View File

@ -1,6 +1,6 @@
# Package
version = "20230801"
version = "20230805"
author = "Emery Hemingway"
description = "Syndicated actors for conversational concurrency"
license = "Unlicense"