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 0d22160 commit d2b28c7Copy full SHA for d2b28c7
src/ansi-c/expr2c.cpp
@@ -2966,7 +2966,15 @@ std::string expr2ct::convert_code_assign(
2966
const code_assignt &src,
2967
unsigned indent)
2968
{
2969
- std::string tmp=convert_binary(src, "=", 2, true);
+ if(src.operands().size()!=2)
2970
+ {
2971
+ unsigned precedence;
2972
+ return convert_norep(src, precedence);
2973
+ }
2974
+
2975
+ binary_exprt tmp_binary(src.op0(), ID_assign, src.op1());
2976
2977
+ std::string tmp=convert_binary(tmp_binary, "=", 2, true);
2978
2979
std::string dest=indent_str(indent)+tmp+";";
2980
0 commit comments