mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Fix TypeEnum comparisons
This commit is contained in:
parent
67d9af5ad2
commit
81a678ce68
1 changed files with 3 additions and 0 deletions
|
@ -764,6 +764,9 @@ int4 TypeEnum::compareDependency(const Datatype &op) const
|
|||
const TypeEnum *te = (const TypeEnum *) &op;
|
||||
map<uintb,string>::const_iterator iter1,iter2;
|
||||
|
||||
if (namemap.size() != te->namemap.size()) {
|
||||
return (namemap.size() < te->namemap.size()) ? -1 : 1;
|
||||
}
|
||||
iter1 = namemap.begin();
|
||||
iter2 = te->namemap.begin();
|
||||
while(iter1 != namemap.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue