mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
runtime/nrf: Fix allocator by adding align() function
This commit is contained in:
@@ -54,3 +54,8 @@ func abort() {
|
||||
for {
|
||||
}
|
||||
}
|
||||
|
||||
// Align on word boundary.
|
||||
func align(ptr uintptr) uintptr {
|
||||
return (ptr + 3) &^ 3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user