From 94fd4cd9a8485b031229a21e535a0e2a8e49d8e5 Mon Sep 17 00:00:00 2001 From: dehnert Date: Thu, 16 Jun 2016 23:56:09 +0200 Subject: [PATCH] fixed bug related to instantaneous reward properties in formula parser Former-commit-id: 8d799f8678e7bff82268fd9b8691ec8015fd04e1 --- src/parser/FormulaParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/FormulaParser.cpp b/src/parser/FormulaParser.cpp index b0ffb32da..53006e750 100644 --- a/src/parser/FormulaParser.cpp +++ b/src/parser/FormulaParser.cpp @@ -406,8 +406,8 @@ namespace storm { return std::shared_ptr(new storm::logic::InstantaneousRewardFormula(static_cast(boost::get(timeBound)))); } else { double timeBoundAsDouble = boost::get(timeBound); - STORM_LOG_THROW(timeBoundAsDouble >= 0, storm::exceptions::WrongFormatException, "Cumulative reward property must have non-negative bound."); - return std::shared_ptr(new storm::logic::InstantaneousRewardFormula(static_cast(timeBoundAsDouble))); + STORM_LOG_THROW(timeBoundAsDouble >= 0, storm::exceptions::WrongFormatException, "Instantaneous reward property must have non-negative bound."); + return std::shared_ptr(new storm::logic::InstantaneousRewardFormula(timeBoundAsDouble)); } }