diff options
| author | mikhnenko <[email protected]> | 2023-09-20 00:17:28 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2023-09-20 00:37:19 +0300 |
| commit | 38d353cb704b884242efe1e8f0d34d2420de4488 (patch) | |
| tree | 03f4e032f028b493a384b8c9b75f160f81ce6a77 /contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h | |
| parent | 9fe06a35ce2c80f49c89bebe61b09ab4f4213ecf (diff) | |
Put libc++ under ym2
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h')
| -rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h index dffce1895cd..f6ba686b417 100644 --- a/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h +++ b/contrib/libs/cxxsupp/libcxx/src/filesystem/filesystem_common.h @@ -83,14 +83,14 @@ format_string_impl(const char* msg, va_list ap) { if (static_cast<size_t>(ret) < buf.size()) { result.assign(buf.data(), static_cast<size_t>(ret)); } else { - // we did not provide a long enough buffer on our first attempt. The - // return value is the number of bytes (excluding the null byte) that are - // needed for formatting. + // we did not provide a long enough buffer on our first attempt. The + // return value is the number of bytes (excluding the null byte) that are + // needed for formatting. size_t size_with_null = static_cast<size_t>(ret) + 1; - result.__resize_default_init(size_with_null - 1); + result.__resize_default_init(size_with_null - 1); ret = ::vsnprintf(&result[0], size_with_null, msg, ap); - _LIBCPP_ASSERT(static_cast<size_t>(ret) == (size_with_null - 1), "TODO"); -} + _LIBCPP_ASSERT(static_cast<size_t>(ret) == (size_with_null - 1), "TODO"); + } return result; } |
