[FEAT] Decompiler
[BUG] Several address calculation errors
This commit is contained in:
@@ -65,7 +65,7 @@ const int scope_declare_variable(const std::string name, const uint32_t type, co
|
||||
const uint32_t address = scope.total_size;
|
||||
const t_variable var {name, type, length, address};
|
||||
scope.variables.push_back(var);
|
||||
scope.total_size += types_get_length(type) + (length == 0 ? 1 : length);
|
||||
scope.total_size += types_get_length(type) * (length == 0 ? 1 : length);
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user