Skip to content

Commit

Permalink
Fix assertion failure when GLIBCXX assertions are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 27, 2024
1 parent f9a0fda commit 98f763c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WTF/wtf/Threading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const char* Thread::normalizeThreadName(const char* threadName)
result = result.right(kLinuxThreadNameLimit);
#endif
auto characters = result.span8();
ASSERT(characters[characters.size()] == '\0');
ASSERT(characters.data()[characters.size()] == '\0');
return byteCast<char>(characters.data());
#endif
}
Expand Down

0 comments on commit 98f763c

Please sign in to comment.