Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jul 26, 2024
1 parent edd5e2c commit 0679cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/intrin/maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void __maps_init(void) {

privileged bool __maps_lock(void) {
struct CosmoTib *tib;
if (__tls_enabled)
if (!__tls_enabled)
return false;
tib = __get_tls_privileged();
if (atomic_fetch_add_explicit(&tib->tib_relock_maps, 1, memory_order_relaxed))
Expand Down

0 comments on commit 0679cfe

Please sign in to comment.