We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 715d67c commit 1ecf63cCopy full SHA for 1ecf63c
src/ansi-c/expr2c.cpp
@@ -3016,7 +3016,15 @@ std::string expr2ct::convert_code_assign(
3016
const code_assignt &src,
3017
unsigned indent)
3018
{
3019
- std::string tmp=convert_binary(src, "=", 2, true);
+ if(src.operands().size()!=2)
3020
+ {
3021
+ unsigned precedence;
3022
+ return convert_norep(src, precedence);
3023
+ }
3024
+
3025
+ binary_exprt tmp_binary(src.op0(), ID_assign, src.op1());
3026
3027
+ std::string tmp=convert_binary(tmp_binary, "=", 2, true);
3028
3029
std::string dest=indent_str(indent)+tmp+";";
3030
0 commit comments