diff --git a/src/ast.cpp b/src/ast.cpp index 9b73841..fa0d1f7 100644 --- a/src/ast.cpp +++ b/src/ast.cpp @@ -910,16 +910,14 @@ static JamValueRef codegenBinaryOp(JamCodegenContext &ctx, const AstNode &n) { case BinOp::Div: { bool signed_ = isSignedIntExpr(ctx, lhsIdx) || isSignedIntExpr(ctx, rhsIdx); - return signed_ - ? JamLLVMBuildSDiv(ctx.getBuilder(), L, R, "divtmp") - : JamLLVMBuildUDiv(ctx.getBuilder(), L, R, "divtmp"); + return signed_ ? JamLLVMBuildSDiv(ctx.getBuilder(), L, R, "divtmp") + : JamLLVMBuildUDiv(ctx.getBuilder(), L, R, "divtmp"); } case BinOp::Mod: { bool signed_ = isSignedIntExpr(ctx, lhsIdx) || isSignedIntExpr(ctx, rhsIdx); - return signed_ - ? JamLLVMBuildSRem(ctx.getBuilder(), L, R, "remtmp") - : JamLLVMBuildURem(ctx.getBuilder(), L, R, "remtmp"); + return signed_ ? JamLLVMBuildSRem(ctx.getBuilder(), L, R, "remtmp") + : JamLLVMBuildURem(ctx.getBuilder(), L, R, "remtmp"); } case BinOp::BitAnd: return JamLLVMBuildAnd(ctx.getBuilder(), L, R, "andtmp");