mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00: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)
|
@(require_results)
|
||||||
align_forward_uintptr :: proc(ptr, align: uintptr) -> uintptr {
|
align_forward_uintptr :: proc(ptr, align: uintptr) -> uintptr {
|
||||||
assert(is_power_of_two(align))
|
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