diff options
author | darin <darin@chromium.org> | 2016-02-23 16:11:18 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-24 00:12:42 +0000 |
commit | b468bbde38775ee51ef42aa3c489ca1c816350ad (patch) | |
tree | 3ac54bdda72640938bfc63b6ffb12c9163249d84 | |
parent | 03357697e76051e483e941f492d7b6c14deee38d (diff) | |
download | chromium_src-b468bbde38775ee51ef42aa3c489ca1c816350ad.zip chromium_src-b468bbde38775ee51ef42aa3c489ca1c816350ad.tar.gz chromium_src-b468bbde38775ee51ef42aa3c489ca1c816350ad.tar.bz2 |
Mojo: Set kInvalidSequenceNum to the max uint64_t value
The sequence number was originally 32-bits, and the invalid value needs to be
adjusted accordingly.
Review URL: https://codereview.chromium.org/1730813002
Cr-Commit-Position: refs/heads/master@{#377146}
-rw-r--r-- | mojo/edk/system/ports/message_queue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mojo/edk/system/ports/message_queue.h b/mojo/edk/system/ports/message_queue.h index f1e37fb..d90ac1a 100644 --- a/mojo/edk/system/ports/message_queue.h +++ b/mojo/edk/system/ports/message_queue.h @@ -9,6 +9,7 @@ #include <deque> #include <functional> +#include <limits> #include <vector> #include "base/macros.h" @@ -19,7 +20,7 @@ namespace edk { namespace ports { const uint64_t kInitialSequenceNum = 1; -const uint64_t kInvalidSequenceNum = 0xFFFFFFFF; +const uint64_t kInvalidSequenceNum = std::numeric_limits<uint64_t>::max(); // An incoming message queue for a port. MessageQueue keeps track of the highest // known sequence number and can indicate whether the next sequential message is |