clang-format

This commit is contained in:
Jōshin 2024-06-06 08:28:06 -07:00
parent 5f4acebca4
commit ec96f7266e
No known key found for this signature in database

View file

@ -38,7 +38,7 @@ big_string::~big_string() /* noexcept */
free(p);
}
} // namespace __
} // namespace __
string::~string() /* noexcept */
{
@ -97,11 +97,11 @@ string::reserve(size_t c2) noexcept
if (c2 <= __::sso_max)
return;
if (!isbig()) {
if (!(p2 = (char *)malloc(c2)))
if (!(p2 = (char*)malloc(c2)))
__builtin_trap();
__builtin_memcpy(p2, data(), size() + 1);
} else {
if (!(p2 = (char *)realloc(big()->p, c2)))
if (!(p2 = (char*)realloc(big()->p, c2)))
__builtin_trap();
}
std::atomic_signal_fence(std::memory_order_seq_cst);