From fffeebd3b11c06c33469867622fac197d8ef0845 Mon Sep 17 00:00:00 2001 From: Antonis Geralis Date: Fri, 21 Jun 2024 01:20:56 +0300 Subject: [PATCH] minor --- src/rmem.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmem.nim b/src/rmem.nim index 3e3e0db..00ecb1f 100644 --- a/src/rmem.nim +++ b/src/rmem.nim @@ -121,7 +121,7 @@ proc `=copy`*(dest: var BiStack; source: BiStack) {.error.} # Module specific Functions Declaration proc alignSize*(size, align: int): int {.inline.} = - result = (size + (align - 1)) and -align + result = (size + align - 1) and not (align - 1) proc splitMemNode(node: MemNode, bytes: int): MemNode = let n = cast[uint](node)