Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kpu/kenlm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2021-04-21 17:06:04 +0300
committerKenneth Heafield <github@kheafield.com>2021-04-21 17:06:04 +0300
commite760fe7b2b14b86ef4dbaa12bb7148aedf47323b (patch)
treebeae9316bfa002e85e7ef050f41d9b5c86053960
parent699c61ea18e7e813d2a709ddc4787ec1f42f45db (diff)
LONG_MAX?
-rw-r--r--util/pcqueue.hh2
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());
}