X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_lock.c;h=d16a487b70d26622cb6f6b6eb2dec2340d04e891;hb=01084b6a95bd991aa227977e96c9aa1b8e08ef85;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..d16a487 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; }