]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/threads/mtx_trylock.c
win32: Fix warnings relating to definition of LONG and use of InterlockedCompareExchange
[pdclib] / platform / win32 / functions / threads / mtx_trylock.c
index ebc5e85c3c3fbf806203756533b55c938947ad15..c5fce0efbd373f43a56b9d7fc6474b7a01e03b63 100644 (file)
@@ -6,7 +6,7 @@ int mtx_trylock(mtx_t *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