X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Fmtx_timedlock.c;h=79c96e9f07c3dbdc621156d87953ce93c54eee3c;hp=07edc0c82e0463c7beedc2b8198f5fb4f9600130;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=3b357986c8ac26f3aee1033c49c28f58c3cd2fb4 diff --git a/platform/win32/functions/threads/mtx_timedlock.c b/platform/win32/functions/threads/mtx_timedlock.c index 07edc0c..79c96e9 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; } @@ -48,7 +48,7 @@ int mtx_timedlock(mtx_t *_PDCLIB_restrict mtx, #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {