[FEAT] Decompiler
[BUG] Several address calculation errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user