]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/threads/mtx_timedlock.c
win32: Fix warnings relating to definition of LONG and use of InterlockedCompareExchange
[pdclib] / platform / win32 / functions / threads / mtx_timedlock.c
index 07edc0c82e0463c7beedc2b8198f5fb4f9600130..5c1ffb30f41f18dd1f1568243b893a70038a8f36 100644 (file)
@@ -8,7 +8,7 @@ int mtx_timedlock(mtx_t *_PDCLIB_restrict mtx,
 {\r
     DWORD myId = GetCurrentThreadId();\r
 \r
-    if(mtx->_ThreadId == myId) {\r
+    if(mtx->_ThreadId == (long) myId) {\r
         mtx->_NestCount++;\r
         return thrd_success;\r
     }\r