diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-10 06:30:06 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-04-10 06:30:06 (GMT) |
commit | 6c7886228f574939ad20ec740543d2aa172bdf42 (patch) | |
tree | 0c70d482c504e64b4944b265446147ee05b9556d | |
parent | 8a87abc0f3b6216c6f058d9ddda4f99e17eb1b75 (diff) | |
download | uscxml-6c7886228f574939ad20ec740543d2aa172bdf42.zip uscxml-6c7886228f574939ad20ec740543d2aa172bdf42.tar.gz uscxml-6c7886228f574939ad20ec740543d2aa172bdf42.tar.bz2 |
replaced INT32_MAX with limits.h
-rw-r--r-- | src/uscxml/transform/ChartToFSM.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/uscxml/transform/ChartToFSM.cpp b/src/uscxml/transform/ChartToFSM.cpp index d0ba5eb..d962481 100644 --- a/src/uscxml/transform/ChartToFSM.cpp +++ b/src/uscxml/transform/ChartToFSM.cpp @@ -17,9 +17,6 @@ * @endcond */ -#define __STDC_LIMIT_MACROS -#include <stdint.h> - #include "uscxml/transform/ChartToFSM.h" #include <DOM/io/Stream.hpp> #include <iostream> @@ -27,6 +24,7 @@ #include <math.h> #include <string.h> #include <algorithm> +#include <limits> namespace uscxml { @@ -302,7 +300,7 @@ static std::list<GlobalTransition*> sortTransitions(std::list<GlobalTransition*> goto NEXT_ITER; } for (int i = t1->firstElemPerLevel.size() - 1; i >= 0 ; i--) { - if (t1->firstElemPerLevel[i] == INT32_MAX || t2->firstElemPerLevel[i] == INT32_MAX) + if (t1->firstElemPerLevel[i] == std::numeric_limits<int32_t>::max() || t2->firstElemPerLevel[i] == std::numeric_limits<int32_t>::max()) break; if (t1->firstElemPerLevel[i] > t2->firstElemPerLevel[i]) { // std::cout << "swapping at " << i << " " << t1->transitionId << " / " << t2->transitionId << std::endl; @@ -460,7 +458,7 @@ void FlatteningInterpreter::explode() { } for (int currDepth = 0; currDepth <= maxDepth; currDepth++) { - int lowestOrder = INT32_MAX; + int lowestOrder = std::numeric_limits<int32_t>::max(); int nrDepth = 0; int prioPerLevel = 0; for (int i = 0; i < transitions.size(); i++) { |