X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_timedlock.c;h=5c1ffb30f41f18dd1f1568243b893a70038a8f36;hb=01084b6a95bd991aa227977e96c9aa1b8e08ef85;hp=07edc0c82e0463c7beedc2b8198f5fb4f9600130;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4;p=pdclib diff --git a/platform/win32/functions/threads/mtx_timedlock.c b/platform/win32/functions/threads/mtx_timedlock.c index 07edc0c..5c1ffb3 100644 --- a/platform/win32/functions/threads/mtx_timedlock.c +++ b/platform/win32/functions/threads/mtx_timedlock.c @@ -8,7 +8,7 @@ int mtx_timedlock(mtx_t *_PDCLIB_restrict mtx, { DWORD myId = GetCurrentThreadId(); - if(mtx->_ThreadId == myId) { + if(mtx->_ThreadId == (long) myId) { mtx->_NestCount++; return thrd_success; }