X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=type_hash.c;h=f4431d785afd8ee14066c9c7c37582a12e5b0189;hb=0f81e48e002184e61774824dfa10d2ffec422710;hp=4219f177e7f895293cde44e6ae53f386db972022;hpb=9749dae0f4dbf98e4fca126b97919fd8f33d9652;p=cparser diff --git a/type_hash.c b/type_hash.c index 4219f17..f4431d7 100644 --- a/type_hash.c +++ b/type_hash.c @@ -57,7 +57,6 @@ unsigned hash_method_type(const method_type_t *type) result ^= hash_ptr(parameter->type); parameter = parameter->next; } - result ^= hash_ptr(type->abi_style); return result; } @@ -118,6 +117,8 @@ static int compound_types_equal(const compound_type_t *type1, const compound_type_t *type2) { + if(type1->type.type != type2->type.type) + return 0; if(type1->symbol != type2->symbol) return 0; @@ -144,9 +145,6 @@ int method_types_equal(const method_type_t *type1, const method_type_t *type2) if(type1->result_type != type2->result_type) return 0; - if(type1->abi_style != type2->abi_style) - return 0; - method_parameter_type_t *param1 = type1->parameter_types; method_parameter_type_t *param2 = type2->parameter_types; while(param1 != NULL && param2 != NULL) {