Skip to content

Commit db46909

Browse files
committed
fix
1 parent 3f8f61c commit db46909

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libcc2rs/src/alloc.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn realloc_refcount(a0: AnyPtr, a1: usize) -> AnyPtr {
2727
}
2828

2929
pub fn calloc_refcount(a0: usize, a1: usize) -> AnyPtr {
30-
Ptr::alloc_array(vec![0u8; a0.wrapping_mul(a1)].into_boxed_slice()).to_any()
30+
Ptr::alloc_array(vec![0u8; a0 * a1].into_boxed_slice()).to_any()
3131
}
3232

3333
pub fn strdup_refcount(a0: Ptr<u8>) -> Ptr<u8> {

0 commit comments

Comments
 (0)