Skip to content

Commit

Permalink
Remove parens for if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo committed Apr 27, 2023
1 parent 6b91c25 commit 08f9e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ghidrust/decompiler/parser/c/CVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public Object visit(ASTStatementList node, Object data) {

public Object visit(ASTSelectionStatement node, Object data) {
StringBuilder ret = new StringBuilder(
"if (" + node.jjtGetChild(0).jjtAccept(this, data) + ") {" + node.jjtGetChild(1).jjtAccept(this, data));
"if " + node.jjtGetChild(0).jjtAccept(this, data) + " {" + node.jjtGetChild(1).jjtAccept(this, data));
ret.append("}");
((CContext) data).statement_end_sc = false;
return ret;
Expand Down

0 comments on commit 08f9e91

Please sign in to comment.