X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_lock.c;h=b76c8ec5ad66d7c0efa4c3208f5894b7f918a754;hb=ed26bf80a4713c6b1f158571f3090f4cbb2d64f7;hp=59e716dc0232c0f56e3584b1d867705e1dcbbf64;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4;p=pdclib diff --git a/platform/win32/functions/threads/mtx_lock.c b/platform/win32/functions/threads/mtx_lock.c index 59e716d..b76c8ec 100644 --- a/platform/win32/functions/threads/mtx_lock.c +++ b/platform/win32/functions/threads/mtx_lock.c @@ -6,7 +6,7 @@ int mtx_lock(mtx_t *mtx) { DWORD myId = GetCurrentThreadId(); - if(mtx->_ThreadId == myId) { + if(mtx->_ThreadId == (long) myId) { mtx->_NestCount++; return thrd_success; } @@ -24,7 +24,7 @@ int mtx_lock(mtx_t *mtx) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {