X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_timedlock.c;h=5c1ffb30f41f18dd1f1568243b893a70038a8f36;hb=875ab9fe96aee3a5fb920163fa0033df8eaae804;hp=07edc0c82e0463c7beedc2b8198f5fb4f9600130;hpb=a9f7a6b87674b6f413d4a9d0a258dd5f5c2df2b4;p=pdclib.old 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; }