From ec96f7266ea95c6e58549e13e56234fe5810371f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Thu, 6 Jun 2024 08:28:06 -0700 Subject: [PATCH] clang-format --- ctl/string.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctl/string.cc b/ctl/string.cc index f1bf28a50..2c3811318 100644 --- a/ctl/string.cc +++ b/ctl/string.cc @@ -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);