X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_trylock.c;h=c5fce0efbd373f43a56b9d7fc6474b7a01e03b63;hb=875ab9fe96aee3a5fb920163fa0033df8eaae804;hp=ebc5e85c3c3fbf806203756533b55c938947ad15;hpb=f128494731b0002755a25c4c2ec9e26845e14734;p=pdclib.old diff --git a/platform/win32/functions/threads/mtx_trylock.c b/platform/win32/functions/threads/mtx_trylock.c index ebc5e85..c5fce0e 100644 --- a/platform/win32/functions/threads/mtx_trylock.c +++ b/platform/win32/functions/threads/mtx_trylock.c @@ -6,7 +6,7 @@ int mtx_trylock(mtx_t *mtx) { DWORD myId = GetCurrentThreadId(); - if(mtx->_ThreadId == myId) { + if(mtx->_ThreadId == (long) myId) { mtx->_NestCount++; return thrd_success; }