Browse Source

Missing paren.

Jeroen van Rijn 9 months ago
parent
commit
c33d2ff96b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mem/mem.odin

+ 1 - 1
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 {
 is_aligned :: proc "contextless" (x: rawptr, align: int) -> bool {
 	p := uintptr(x)
 	p := uintptr(x)
-	return (p & (uintptr(align) - 1) == 0
+	return (p & (uintptr(align) - 1)) == 0
 }
 }
 
 
 /*
 /*