Browse Source

Silenced warning

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
820b48354d
  1. 9
      src/storm/storage/expressions/UnaryNumericalFunctionExpression.cpp

9
src/storm/storage/expressions/UnaryNumericalFunctionExpression.cpp

@ -71,10 +71,13 @@ namespace storm {
if (operandSimplified->hasIntegerType()) { if (operandSimplified->hasIntegerType()) {
int_fast64_t value = operandSimplified->evaluateAsInt(); int_fast64_t value = operandSimplified->evaluateAsInt();
switch (this->getOperatorType()) { switch (this->getOperatorType()) {
case OperatorType::Minus: value = -value; break;
case OperatorType::Minus:
value = -value;
break;
// Nothing to be done for the other cases: // Nothing to be done for the other cases:
// case OperatorType::Floor:
// case OperatorType::Ceil:
case OperatorType::Floor:
case OperatorType::Ceil:
break;
} }
return std::shared_ptr<BaseExpression>(new IntegerLiteralExpression(this->getManager(), value)); return std::shared_ptr<BaseExpression>(new IntegerLiteralExpression(this->getManager(), value));
} else { } else {

Loading…
Cancel
Save