summaryrefslogtreecommitdiffstats
path: root/src/uscxml/transform
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/transform')
-rw-r--r--src/uscxml/transform/ChartToFSM.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/transform/ChartToFSM.cpp b/src/uscxml/transform/ChartToFSM.cpp
index 7f38397..49519dc 100644
--- a/src/uscxml/transform/ChartToFSM.cpp
+++ b/src/uscxml/transform/ChartToFSM.cpp
@@ -26,6 +26,7 @@
#include <math.h>
#include <string.h>
#include <algorithm>
+#undef max
#include <limits>
namespace uscxml {
@@ -499,7 +500,7 @@ void FlatteningInterpreter::explode() {
int order = strTo<int>(ATTR(transitions[i], "order"));
if (order < lowestOrder)
lowestOrder = order;
- prioPerLevel += pow(maxOrder, maxOrder - order);
+ prioPerLevel += pow(static_cast<double>(maxOrder), maxOrder - order);
}
transition->nrElemPerLevel.push_back(nrDepth);
transition->firstElemPerLevel.push_back(lowestOrder);