Skip to content

Commit

Permalink
Merge pull request #3309 from yebblies/condcomment
Browse files Browse the repository at this point in the history
[DDMD] Fix comment inside condition
  • Loading branch information
9rnsr committed Feb 21, 2014
2 parents 5c6a5c4 + 7150378 commit 495deb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hdrgen.c
Expand Up @@ -1879,10 +1879,10 @@ void expToCBuffer(OutBuffer *buf, HdrGenState *hgs, Expression *e, PREC pr)
assert(pr != PREC_zero);

//if (precedence[e->op] == 0) e->print();
/* Despite precedence, we don't allow a<b<c expressions.
* They must be parenthesized.
*/
if (precedence[e->op] < pr ||
/* Despite precedence, we don't allow a<b<c expressions.
* They must be parenthesized.
*/
(pr == PREC_rel && precedence[e->op] == pr))
{
buf->writeByte('(');
Expand Down

0 comments on commit 495deb7

Please sign in to comment.