diff options
author | def <dennis@felsin9.de> | 2015-04-06 01:51:28 +0200 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-04-06 02:24:17 +0200 |
commit | 22b4e4c2f28419662f833799598474570bbc1b84 (patch) | |
tree | aaf36c109882274a85ffe987044065e4b4a6ede1 /lib/pure/collections/tables.nim | |
parent | 99e0fb90e0d66e706cb91f5af126413d3588c97b (diff) | |
download | Nim-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.nim | 2 |
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 |