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 3f9f4d7 commit 1818f4aCopy full SHA for 1818f4a
src/ansi-c/expr2c.cpp
@@ -2958,7 +2958,15 @@ std::string expr2ct::convert_code_assign(
2958
const code_assignt &src,
2959
unsigned indent)
2960
{
2961
- std::string tmp=convert_binary(src, "=", 2, true);
+ if(src.operands().size()!=2)
2962
+ {
2963
+ unsigned precedence;
2964
+ return convert_norep(src, precedence);
2965
+ }
2966
+
2967
+ binary_exprt tmp_binary(src.lhs(), ID_assign, src.rhs());
2968
2969
+ std::string tmp=convert_binary(tmp_binary, "=", 2, true);
2970
2971
std::string dest=indent_str(indent)+tmp+";";
2972
0 commit comments