X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_hash.c;h=ad0732f8164783b0996f2b05daf26cc06a40e615;hb=fa61f23247924f91fada93dff65923c3c4cac059;hp=88de01c617e3e47908077845d9d3371f3a89a5f3;hpb=02f47f268839c472e23095ac0025e5ccbb5ed70a;p=cparser diff --git a/type_hash.c b/type_hash.c index 88de01c..ad0732f 100644 --- a/type_hash.c +++ b/type_hash.c @@ -98,7 +98,8 @@ static unsigned hash_function_type(const function_type_t *type) result ^= hash_ptr(parameter->type); parameter = parameter->next; } - result ^= hash_ptr(type->linkage); + result += type->linkage; + result += type->calling_convention; return result; } @@ -210,6 +211,8 @@ static bool function_types_equal(const function_type_t *type1, return false; if (type1->linkage != type2->linkage) return false; + if (type1->calling_convention != type2->calling_convention) + return false; function_parameter_t *param1 = type1->parameters; function_parameter_t *param2 = type2->parameters;