Jeroen van Rijn пре 10 месеци
родитељ
комит
1a13322cd7
1 измењених фајлова са 1 додато и 1 уклоњено
  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 {
 	p := uintptr(x)
-	return (p & (uintptr(align) - 1) == 0
+	return (p & (uintptr(align) - 1)) == 0
 }
 
 /*