Skip to content

Commit

Permalink
start to clean up a few codetest failures
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz authored and Reini Urban committed Mar 17, 2014
1 parent a45e198 commit 70459a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/6model/multi_dispatch.c
Expand Up @@ -316,7 +316,8 @@ PMC *nqp_multi_dispatch(PARROT_INTERP, PMC *dispatcher, PMC *capture) {
INTVAL defined = param->vtable->base_type == smo_id ?
REPR(param)->defined(interp, param) :
VTABLE_defined(interp, param);
if ((!defined && definedness == DEFINED_ONLY) || (defined && definedness == UNDEFINED_ONLY)) {
if ((!defined && definedness == DEFINED_ONLY)
|| (defined && definedness == UNDEFINED_ONLY)) {
type_mismatch = 1;
break;
}
Expand Down
8 changes: 4 additions & 4 deletions src/6model/reprs/P6opaque.c
Expand Up @@ -1048,10 +1048,10 @@ static void
gc_free(PARROT_INTERP, PMC *obj)
{
P6opaqueREPRData *repr_data = (P6opaqueREPRData *)STABLE(obj)->REPR_data;
if (repr_data->allocation_size)
Parrot_gc_free_fixed_size_storage(interp, repr_data->allocation_size, PMC_data(obj));
else
mem_sys_free(PMC_data(obj));
if (repr_data->allocation_size)
Parrot_gc_free_fixed_size_storage(interp, repr_data->allocation_size, PMC_data(obj));
else
mem_sys_free(PMC_data(obj));
PMC_data(obj) = NULL;
}

Expand Down

0 comments on commit 70459a9

Please sign in to comment.