|
@@ -858,7 +858,7 @@ and gen_value ctx e =
|
|
|
| TIf (cond,e,eo) ->
|
|
|
(* remove parenthesis unless it's an operation with higher precedence than ?: *)
|
|
|
let cond = (match cond.eexpr with
|
|
|
- | TParenthesis { eexpr = TBinop ((Ast.OpAssign | Ast.OpAssignOp _),_,_) } -> cond
|
|
|
+ | TParenthesis { eexpr = TBinop ((Ast.OpAssign | Ast.OpAssignOp _),_,_) | TIf _ } -> cond
|
|
|
| TParenthesis e -> e
|
|
|
| _ -> cond
|
|
|
) in
|