[FEAT] Decompiler

[BUG] Several address calculation errors
This commit is contained in:
2021-05-05 09:34:58 +02:00
parent 1516043f17
commit 37fdf1f42f
6 changed files with 80 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ const int types_add_member(const uint32_t type, const std::string name, const ui
for (auto m : types[type].members) if (m.name == name) return -1;
const t_variable new_var {name, var_type, length, types[type].size};
types[type].members.push_back(new_var);
types[type].size += types_get_length(var_type) + length;
types[type].size += types_get_length(var_type) * length;
return types[type].members.size()-1;
}