mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 10:22:23 -07:00
[mem]: Fix the issue with unbranched version of ptr align
This commit is contained in:
+1
-1
@@ -468,7 +468,7 @@ The specified alignment must be a power of 2.
|
||||
@(require_results)
|
||||
align_forward_uintptr :: proc(ptr, align: uintptr) -> uintptr {
|
||||
assert(is_power_of_two(align))
|
||||
return (p + align-1) & ~(align-1)
|
||||
return (ptr + align-1) & ~(align-1)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user