diff options
Diffstat (limited to 'tests/gc/gctest.nim')
-rwxr-xr-x | tests/gc/gctest.nim | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/gc/gctest.nim b/tests/gc/gctest.nim index f58dc3217..a2d97c944 100755 --- a/tests/gc/gctest.nim +++ b/tests/gc/gctest.nim @@ -28,15 +28,15 @@ type of nkList: sons: seq[PCaseNode] else: unused: seq[string] - TIdObj* = object of TObject - id*: int # unique id; use this for comparisons and not the pointers - - PIdObj* = ref TIdObj - PIdent* = ref TIdent - TIdent*{.acyclic.} = object of TIdObj - s*: string - next*: PIdent # for hash-table chaining - h*: int # hash value of s + TIdObj* = object of TObject + id*: int # unique id; use this for comparisons and not the pointers + + PIdObj* = ref TIdObj + PIdent* = ref TIdent + TIdent*{.acyclic.} = object of TIdObj + s*: string + next*: PIdent # for hash-table chaining + h*: int # hash value of s var flip: int @@ -145,8 +145,8 @@ proc buildBTree(father: var TBNode) = setSons(father) proc getIdent(identifier: cstring, length: int, h: int): PIdent = - new(result) - result.h = h + new(result) + result.h = h result.s = newString(length) proc main() = |