Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.

Commit 5591631

Browse files
Fix POSIX WAVM_ENABLE_ASSERTS compile error
1 parent 17d9261 commit 5591631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/Platform/POSIX/MutexPOSIX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Platform::Mutex::Mutex()
1717
pthread_mutexattr_t pthreadMutexAttr;
1818
WAVM_ERROR_UNLESS(!pthread_mutexattr_init(&pthreadMutexAttr));
1919
WAVM_ERROR_UNLESS(!pthread_mutexattr_settype(&pthreadMutexAttr, PTHREAD_MUTEX_RECURSIVE));
20-
WAVM_ERROR_UNLESS(!pthread_mutex_init((pthread_mutex_t*)data, &pthreadMutexAttr));
20+
WAVM_ERROR_UNLESS(!pthread_mutex_init((pthread_mutex_t*)&lockData, &pthreadMutexAttr));
2121
WAVM_ERROR_UNLESS(!pthread_mutexattr_destroy(&pthreadMutexAttr));
2222
isLocked = false;
2323
#else

0 commit comments

Comments
 (0)