Skip to content

Commit 15c917e

Browse files
committed
fix syntax error
1 parent 41cc1bf commit 15c917e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prim/windows/prim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ mi_decl_cache_align size_t _mi_win_tls_offset = 0;
639639
static void mi_win_tls_init(DWORD reason) {
640640
if (reason==DLL_PROCESS_ATTACH || reason==DLL_THREAD_ATTACH) {
641641
#if MI_WIN_USE_FIXED_TLS==1 // we must allocate a TLS slot dynamically
642-
if (_mi_win_tls_offset == 0 && reason=DLL_PROCESS_ATTACH) {
642+
if (_mi_win_tls_offset == 0 && reason == DLL_PROCESS_ATTACH) {
643643
const DWORD tls_slot = TlsAlloc(); // usually returns slot 1
644644
if (tls_slot == TLS_OUT_OF_INDEXES) {
645645
_mi_error_message(EFAULT, "unable to allocate the a TLS slot (rebuild without MI_WIN_USE_FIXED_TLS?)\n");

0 commit comments

Comments
 (0)