diff options
author | Kenneth Heafield <github@kheafield.com> | 2021-04-21 17:06:04 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2021-04-21 17:06:04 +0300 |
commit | e760fe7b2b14b86ef4dbaa12bb7148aedf47323b (patch) | |
tree | beae9316bfa002e85e7ef050f41d9b5c86053960 | |
parent | 699c61ea18e7e813d2a709ddc4787ec1f42f45db (diff) |
LONG_MAX?
-rw-r--r-- | util/pcqueue.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pcqueue.hh b/util/pcqueue.hh index edd2e80..7cb9820 100644 --- a/util/pcqueue.hh +++ b/util/pcqueue.hh @@ -96,7 +96,7 @@ inline void WaitSemaphore(Semaphore &semaphore) { class Semaphore { public: - explicit Semaphore(LONG value) : sem_(CreateSemaphoreA(NULL, value, std::numeric_limits<LONG>::max(), NULL)) { + explicit Semaphore(LONG value) : sem_(CreateSemaphoreA(NULL, value, LONG_MAX, NULL)) { UTIL_THROW_IF(!sem_, Exception, "Could not CreateSemaphore " << GetLastError()); } |