mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
[mem]: Fix the issue with unbranched version of ptr align
This commit is contained in:
@@ -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