summaryrefslogtreecommitdiff
path: root/mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp')
-rw-r--r--mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp b/mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp
index 23ef649..0362ab3 100644
--- a/mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp
+++ b/mobicore/MobiCoreDriverLib/Common/CSemaphore.cpp
@@ -70,7 +70,7 @@ bool CSemaphore::wait(int sec)
int rc = 0;
struct timespec tm;
if (sec < 0)
- sec = LONG_MAX;
+ sec = INT_MAX;
clock_gettime(CLOCK_REALTIME, &tm);
tm.tv_sec += sec;