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