diff options
author | Lompiktab <stefont@gmail.com> | 2016-05-14 09:41:35 +0400 |
---|---|---|
committer | Lompiktab <stefont@gmail.com> | 2016-05-14 09:41:35 +0400 |
commit | 72ba30d0a91e47903adb836199c26b7c9120606a (patch) | |
tree | db4f4573c01940f16ba5283725c13ad7e467ba85 /lib/pure | |
parent | 7341465439958143e5c89fecdccfa348d04083b1 (diff) | |
download | Nim-72ba30d0a91e47903adb836199c26b7c9120606a.tar.gz |
Fix 2 compile errors in LockFreeHash.nim
* type mismatch in range (line 55) * invalid indentation (line 249)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/collections/LockFreeHash.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/collections/LockFreeHash.nim b/lib/pure/collections/LockFreeHash.nim index bb77331df..954d62491 100644 --- a/lib/pure/collections/LockFreeHash.nim +++ b/lib/pure/collections/LockFreeHash.nim @@ -52,7 +52,7 @@ when sizeof(int) == 4: # 32bit {.deprecated: [TRaw: Raw].} elif sizeof(int) == 8: # 64bit type - Raw = range[0..4611686018427387903] + Raw = range[0'i64..4611686018427387903'i64] ## The range of uint values that can be stored directly in a value slot ## when on a 64 bit platform {.deprecated: [TRaw: Raw].} @@ -244,9 +244,9 @@ proc copySlot[K,V](idx: int, oldTbl: var PConcTable[K,V], newTbl: var PConcTable echo("oldVal is Tomb!!!, should not happen") if pop(oldVal) != 0: result = setVal(newTbl, pop(oldKey), pop(oldVal), 0, true) == 0 - if result: + #if result: #echo("Copied a Slot! idx= " & $idx & " key= " & $oldKey & " val= " & $oldVal) - else: + #else: #echo("copy slot failed") # Our copy is done so we disable the old slot while not ok: |