summary refs log tree commit diff stats
path: root/lib/pure/collections/tables.nim
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-04-06 01:51:28 +0200
committerdef <dennis@felsin9.de>2015-04-06 02:24:17 +0200
commit22b4e4c2f28419662f833799598474570bbc1b84 (patch)
treeaaf36c109882274a85ffe987044065e4b4a6ede1 /lib/pure/collections/tables.nim
parent99e0fb90e0d66e706cb91f5af126413d3588c97b (diff)
downloadNim-22b4e4c2f28419662f833799598474570bbc1b84.tar.gz
Use more Natural and Positive numbers in proc parameters
- Didn't go through all modules, only the main ones I thought of
- Building the compiler and tests still work
Diffstat (limited to 'lib/pure/collections/tables.nim')
-rw-r--r--lib/pure/collections/tables.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/tables.nim b/lib/pure/collections/tables.nim
index f85acef22..5c4ac0401 100644
--- a/lib/pure/collections/tables.nim
+++ b/lib/pure/collections/tables.nim
@@ -128,7 +128,7 @@ proc mustRehash(length, counter: int): bool {.inline.} =
   assert(length > counter)
   result = (length * 2 < counter * 3) or (length - counter < 4)
 
-proc rightSize*(count: int): int {.inline.} =
+proc rightSize*(count: Natural): int {.inline.} =
   ## Return the value of `initialSize` to support `count` items.
   ##
   ## If more items are expected to be added, simply add that