Skip to content

Commit

Permalink
Add void type where it was forgotten
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbrenguier committed Aug 30, 2018
1 parent 62e24f1 commit 4b669e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jbmc/src/java_bytecode/java_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,8 @@ optionalt<size_t> java_generic_symbol_typet::generic_type_index(

std::string pretty_java_type(const typet &type)
{
if(type == java_void_type())
return "void";
if(type == java_int_type())
return "int";
else if(type == java_long_type())
Expand Down
1 change: 1 addition & 0 deletions jbmc/src/java_bytecode/java_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ typet java_char_type();
typet java_float_type();
typet java_double_type();
typet java_boolean_type();
typet java_void_type();
reference_typet java_reference_type(const typet &subtype);
reference_typet java_lang_object_type();
symbol_typet java_classname(const std::string &);
Expand Down

0 comments on commit 4b669e4

Please sign in to comment.