mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Make alignment be a u32
This commit is contained in:
parent
24e22bc31b
commit
18df7fd24f
13 changed files with 45 additions and 46 deletions
|
@ -32,13 +32,13 @@ extern "C" {
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe fn roc_alloc(_alignment: usize, size: usize) -> *mut c_void {
|
||||
pub unsafe fn roc_alloc(_alignment: u32, size: usize) -> *mut c_void {
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe fn roc_realloc(
|
||||
_alignment: usize,
|
||||
_alignment: u32,
|
||||
c_ptr: *mut c_void,
|
||||
_old_size: usize,
|
||||
new_size: usize,
|
||||
|
@ -47,7 +47,7 @@ pub unsafe fn roc_realloc(
|
|||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe fn roc_dealloc(_alignment: usize, c_ptr: *mut c_void) {
|
||||
pub unsafe fn roc_dealloc(_alignment: u32, c_ptr: *mut c_void) {
|
||||
return free(c_ptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue