Skip to content

Commit 7231685

Browse files
author
Daniel Kroening
committed
avoid hard-wired pointer width
1 parent 2889370 commit 7231685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
16731673
from_integer(
16741674
std::next(i_it)->address,
16751675
unsignedbv_typet(64));
1676-
results[0].type()=pointer_typet(void_typet(), 64);
1676+
results[0].type()=pointer_type(void_typet());
16771677
}
16781678
else if(statement=="ret")
16791679
{
@@ -1698,7 +1698,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
16981698
from_integer(
16991699
jsr_ret_targets[idx],
17001700
unsignedbv_typet(64));
1701-
address_ptr.type()=pointer_typet(void_typet(), 64);
1701+
address_ptr.type()=pointer_type(void_typet());
17021702
branch.cond()=equal_exprt(retvar, address_ptr);
17031703
branch.cond().add_source_location()=i_it->source_location;
17041704
branch.then_case()=g;

0 commit comments

Comments
 (0)