summaryrefslogtreecommitdiffstats
path: root/src/uscxml/interpreter/BasicEventQueue.cpp
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-06-13 13:42:26 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-06-13 13:42:26 (GMT)
commitd6602a2aab1dc00663bd64759f12935283b58076 (patch)
tree0dc8a7c705da22dc39939d23192e0f56639bc45d /src/uscxml/interpreter/BasicEventQueue.cpp
parent07395f2766d70c55f51674dc3027d7b19a4ccc26 (diff)
downloaduscxml-d6602a2aab1dc00663bd64759f12935283b58076.zip
uscxml-d6602a2aab1dc00663bd64759f12935283b58076.tar.gz
uscxml-d6602a2aab1dc00663bd64759f12935283b58076.tar.bz2
Fixed issue84
Diffstat (limited to 'src/uscxml/interpreter/BasicEventQueue.cpp')
-rw-r--r--src/uscxml/interpreter/BasicEventQueue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/interpreter/BasicEventQueue.cpp b/src/uscxml/interpreter/BasicEventQueue.cpp
index 7309392..d484ada 100644
--- a/src/uscxml/interpreter/BasicEventQueue.cpp
+++ b/src/uscxml/interpreter/BasicEventQueue.cpp
@@ -39,9 +39,9 @@ Event BasicEventQueue::dequeue(size_t blockMs) {
// block for given milliseconds or until queue is filled
std::chrono::time_point<std::chrono::system_clock> updated, now;
std::chrono::milliseconds remain;
-
- if (blockMs > std::chrono::system_clock::duration::max().count()) {
- blockMs = std::chrono::system_clock::duration::max().count();
+
+ if (blockMs > (std::chrono::system_clock::duration::max)().count()) {
+ blockMs = (std::chrono::system_clock::duration::max)().count();
}
updated = now = std::chrono::system_clock::now();