diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-06-13 13:42:26 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-06-13 13:42:26 (GMT) |
commit | d6602a2aab1dc00663bd64759f12935283b58076 (patch) | |
tree | 0dc8a7c705da22dc39939d23192e0f56639bc45d /src/uscxml/interpreter | |
parent | 07395f2766d70c55f51674dc3027d7b19a4ccc26 (diff) | |
download | uscxml-d6602a2aab1dc00663bd64759f12935283b58076.zip uscxml-d6602a2aab1dc00663bd64759f12935283b58076.tar.gz uscxml-d6602a2aab1dc00663bd64759f12935283b58076.tar.bz2 |
Fixed issue84
Diffstat (limited to 'src/uscxml/interpreter')
-rw-r--r-- | src/uscxml/interpreter/BasicEventQueue.cpp | 6 | ||||
-rw-r--r-- | src/uscxml/interpreter/BasicEventQueue.h | 1 |
2 files changed, 3 insertions, 4 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(); diff --git a/src/uscxml/interpreter/BasicEventQueue.h b/src/uscxml/interpreter/BasicEventQueue.h index 15a1c3c..a6374d8 100644 --- a/src/uscxml/interpreter/BasicEventQueue.h +++ b/src/uscxml/interpreter/BasicEventQueue.h @@ -20,7 +20,6 @@ #ifndef BASICEVENTQUEUE_H_39DCC18B #define BASICEVENTQUEUE_H_39DCC18B - #include "EventQueueImpl.h" #include <string> #include <map> |