aboutsummaryrefslogtreecommitdiff
path: root/core/mem
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-11-03 14:10:29 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2024-11-03 14:10:29 +0100
commitc33d2ff96bc2104f6b5cd794fd589ecd32687d09 (patch)
treeb1f6e8431caf864ea279a3c344b9f43a56a7a33b /core/mem
parent9199c6df3426dddff588c3347a3198e673a1dd11 (diff)
Missing paren.
Diffstat (limited to 'core/mem')
-rw-r--r--core/mem/mem.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/mem.odin b/core/mem/mem.odin
index f00980af5..ccbc77798 100644
--- a/core/mem/mem.odin
+++ b/core/mem/mem.odin
@@ -466,7 +466,7 @@ The specified alignment must be a power of 2.
*/
is_aligned :: proc "contextless" (x: rawptr, align: int) -> bool {
p := uintptr(x)
- return (p & (uintptr(align) - 1) == 0
+ return (p & (uintptr(align) - 1)) == 0
}
/*