Fix style.

This commit is contained in:
chriseth 2020-10-29 17:35:55 +01:00
parent 0c12b2e53a
commit f215042cf6

View File

@ -2566,10 +2566,10 @@ string IRGeneratorForStatements::binaryOperation(
""); "");
switch (_operator) switch (_operator)
{ {
case Token::BitOr: fun = "or"; break; case Token::BitOr: fun = "or"; break;
case Token::BitXor: fun = "xor"; break; case Token::BitXor: fun = "xor"; break;
case Token::BitAnd: fun = "and"; break; case Token::BitAnd: fun = "and"; break;
default: break; default: break;
} }
} }
else if (TokenTraits::isArithmeticOp(_operator)) else if (TokenTraits::isArithmeticOp(_operator))
@ -2578,23 +2578,23 @@ string IRGeneratorForStatements::binaryOperation(
solAssert(type, ""); solAssert(type, "");
switch (_operator) switch (_operator)
{ {
case Token::Add: case Token::Add:
fun = m_utils.overflowCheckedIntAddFunction(*type); fun = m_utils.overflowCheckedIntAddFunction(*type);
break; break;
case Token::Sub: case Token::Sub:
fun = m_utils.overflowCheckedIntSubFunction(*type); fun = m_utils.overflowCheckedIntSubFunction(*type);
break; break;
case Token::Mul: case Token::Mul:
fun = m_utils.overflowCheckedIntMulFunction(*type); fun = m_utils.overflowCheckedIntMulFunction(*type);
break; break;
case Token::Div: case Token::Div:
fun = m_utils.overflowCheckedIntDivFunction(*type); fun = m_utils.overflowCheckedIntDivFunction(*type);
break; break;
case Token::Mod: case Token::Mod:
fun = m_utils.checkedIntModFunction(*type); fun = m_utils.checkedIntModFunction(*type);
break; break;
default: default:
break; break;
} }
} }