Skip to content

Commit

Permalink
Fix two more instances of swapped MVM_calloc args
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Jan 14, 2017
1 parent f69bfbd commit 9751a18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/regionalloc.c
Expand Up @@ -19,7 +19,7 @@ void * MVM_region_alloc(MVMThreadContext *tc, MVMRegionAlloc *al, size_t bytes)
: MVM_REGIONALLOC_MEMBLOCK_SIZE;
if (buffer_size < bytes)
buffer_size = bytes;
block->buffer = MVM_calloc(buffer_size, 1);
block->buffer = MVM_calloc(1, buffer_size);
block->alloc = block->buffer;
block->limit = block->buffer + buffer_size;
block->prev = al->block;
Expand Down
2 changes: 1 addition & 1 deletion src/core/validation.c
Expand Up @@ -654,7 +654,7 @@ void MVM_validate_static_frame(MVMThreadContext *tc,
val->bc_size = fb->bytecode_size;
val->src_cur_op = fb->bytecode;
val->src_bc_end = fb->bytecode + fb->bytecode_size;
val->labels = MVM_calloc(fb->bytecode_size, 1);
val->labels = MVM_calloc(1, fb->bytecode_size);
val->cur_info = NULL;
val->cur_mark = NULL;
val->cur_instr = 0;
Expand Down

0 comments on commit 9751a18

Please sign in to comment.