From: Gabriel Corona Date: Mon, 10 Feb 2014 10:49:07 +0000 (+0100) Subject: [mc] Fix broken type lookup code X-Git-Tag: v3_11~199^2~2^2~24^2~15 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3544b4b09672183d6414c843630d2bb2cdbc9650 [mc] Fix broken type lookup code --- diff --git a/src/mc/mc_compare.c b/src/mc/mc_compare.c index 40dd9032d6..1405e259ea 100644 --- a/src/mc/mc_compare.c +++ b/src/mc/mc_compare.c @@ -151,13 +151,8 @@ static int compare_areas_with_type(void *area1, void *area2, mc_object_info_t in case DW_TAG_structure_type: case DW_TAG_union_type: if(subtype->byte_size == 0){ /*declaration of the type, need the complete description */ - dw_type_t full_type = xbt_dict_get_or_null(other_info->types_by_name, subtype->name); - if(full_type) { - type = full_type; - } else { subtype = xbt_dict_get_or_null(other_info->types_by_name, subtype->name); switch_types = 1; - } } elm_size = subtype->byte_size; break;