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