From 70459a9fa0674fadc6c6cf1fdc5f70a2e5d2a3e7 Mon Sep 17 00:00:00 2001 From: Moritz Lenz Date: Sat, 27 Aug 2011 19:51:59 +0200 Subject: [PATCH] start to clean up a few codetest failures --- src/6model/multi_dispatch.c | 3 ++- src/6model/reprs/P6opaque.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/6model/multi_dispatch.c b/src/6model/multi_dispatch.c index 91767c0229..57cd73b755 100644 --- a/src/6model/multi_dispatch.c +++ b/src/6model/multi_dispatch.c @@ -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; } diff --git a/src/6model/reprs/P6opaque.c b/src/6model/reprs/P6opaque.c index d8a70a2833..b67ac70ac0 100644 --- a/src/6model/reprs/P6opaque.c +++ b/src/6model/reprs/P6opaque.c @@ -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; }