Skip to content

Commit

Permalink
Correct pretty-printing of code_returnt
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Mar 23, 2017
1 parent a7663cb commit e843b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansi-c/expr2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@ std::string expr2ct::convert_code_return(
std::string dest=indent_str(indent);
dest+="return";

if(src.operands().size()==1)
if(to_code_return(src).has_return_value())
dest+=" "+convert(src.op0());

dest+=';';
Expand Down

0 comments on commit e843b72

Please sign in to comment.