diff options
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> |