mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
use calloc to make wasm tests consistent
This commit is contained in:
parent
f92d1934d4
commit
ad76fa2a4e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ size_t *alloc_ptr_to_rc_ptr(void *ptr, unsigned int alignment)
|
|||
|
||||
void *roc_alloc(size_t size, unsigned int alignment)
|
||||
{
|
||||
void *allocated = malloc(size);
|
||||
void *allocated = calloc(size, 1);
|
||||
|
||||
if (rc_pointers)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue