diff options
author | Antonis <b3liever@yandex.com> | 2020-05-11 12:45:55 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-05-11 15:39:44 +0200 |
commit | 73c9d2c9d745e4396dbfc9e9422acdfa7809b705 (patch) | |
tree | 2a16b8abbe45391de5392d7035914ecb757c8581 /lib/system/mm/boehm.nim | |
parent | 14f76f721da663c9ef15d4adf51ab4c87eda8366 (diff) | |
download | Nim-73c9d2c9d745e4396dbfc9e9422acdfa7809b705.tar.gz |
Fix for --styleCheck:error
Diffstat (limited to 'lib/system/mm/boehm.nim')
-rw-r--r-- | lib/system/mm/boehm.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/mm/boehm.nim b/lib/system/mm/boehm.nim index b1afe59fc..362d2d470 100644 --- a/lib/system/mm/boehm.nim +++ b/lib/system/mm/boehm.nim @@ -53,14 +53,14 @@ when not defined(useNimRtl): proc realloc0Impl(p: pointer, oldSize, newSize: Natural): pointer = result = boehmRealloc(p, newSize) if result == nil: raiseOutOfMem() - if newsize > oldsize: - zeroMem(cast[pointer](cast[int](result) + oldsize), newsize - oldsize) + if newSize > oldSize: + zeroMem(cast[pointer](cast[int](result) + oldSize), newSize - oldSize) proc deallocImpl(p: pointer) = boehmDealloc(p) proc allocSharedImpl(size: Natural): pointer = allocImpl(size) proc allocShared0Impl(size: Natural): pointer = alloc0Impl(size) - proc reallocSharedImpl(p: pointer, newsize: Natural): pointer = reallocImpl(p, newsize) - proc reallocShared0Impl(p: pointer, oldsize, newsize: Natural): pointer = realloc0Impl(p, oldsize, newsize) + proc reallocSharedImpl(p: pointer, newSize: Natural): pointer = reallocImpl(p, newSize) + proc reallocShared0Impl(p: pointer, oldSize, newSize: Natural): pointer = realloc0Impl(p, oldSize, newSize) proc deallocSharedImpl(p: pointer) = deallocImpl(p) when hasThreadSupport: |