Skip to content

Commit 568b603

Browse files
committed
Fix compile error on Windows
1 parent fff7bfb commit 568b603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pycall/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void *pycall_tls_get(pycall_tls_key tls_key)
1414

1515
int pycall_tls_set(pycall_tls_key tls_key, void *ptr)
1616
{
17-
return TlsSetValue(tls_key, th) == 0;
17+
return 0 == TlsSetValue(tls_key, ptr);
1818
}
1919
#endif
2020

0 commit comments

Comments
 (0)