[mem]: Fix the issue with unbranched version of ptr align
This commit is contained in:
1 parent
3a351ec407
commit
f8cd13767e
1 file changed
+1
-1
+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