Skip to content

Commit

Permalink
tests: cast for memset to satisfy gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdragan committed Dec 26, 2021
1 parent 3311a80 commit 97491ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kos_vm_unit_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int test_instr(KOS_CONTEXT ctx,
return KOS_ERROR_EXCEPTION;
}

memset(module, 0, sizeof(*module));
memset((void *)module, 0, sizeof(KOS_MODULE));

constants = KOS_new_array(ctx, MAX_ARGS + 4);
if (IS_BAD_PTR(constants)) {
Expand Down

0 comments on commit 97491ff

Please sign in to comment.