Skip to content

Commit 6edaaa0

Browse files
author
thk123
committed
Remove the uncasted member_type so all references use the correct version
1 parent e8cbf90 commit 6edaaa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ void java_bytecode_convert_methodt::convert(
385385

386386
// Obtain a std::vector of code_typet::parametert objects from the
387387
// (function) type of the symbol
388-
typet member_type=method_symbol.type;
389-
member_type.set(ID_C_class, class_symbol.name);
390-
code_typet &code_type=to_code_type(member_type);
388+
389+
code_typet code_type=to_code_type(method_symbol.type);
390+
code_type.set(ID_C_class, class_symbol.name);
391391
method_return_type=code_type.return_type();
392392
code_typet::parameterst &parameters=code_type.parameters();
393393

@@ -547,7 +547,7 @@ void java_bytecode_convert_methodt::convert(
547547
id2string(m.base_name) + "()";
548548
}
549549

550-
method_symbol.type=member_type;
550+
method_symbol.type=code_type;
551551

552552
current_method=method_symbol.name;
553553
method_has_this=code_type.has_this();

0 commit comments

Comments
 (0)