Make alignment be a u32

This commit is contained in:
Richard Feldman 2021-05-23 11:04:35 -04:00
parent 24e22bc31b
commit 18df7fd24f
13 changed files with 45 additions and 46 deletions

View file

@ -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);
}