updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@@ -189,7 +189,7 @@ auto to_utf8(std::wstring_view str) -> std::string {
|
|||||||
std::array<std::uint8_t, U8_MAX_LENGTH> buf{};
|
std::array<std::uint8_t, U8_MAX_LENGTH> buf{};
|
||||||
std::int32_t off{0};
|
std::int32_t off{0};
|
||||||
auto err{false};
|
auto err{false};
|
||||||
U8_APPEND(buf.data(), off, U8_MAX_LENGTH, uni_ch, err);
|
U8_APPEND(buf, off, U8_MAX_LENGTH, uni_ch, err);
|
||||||
if (err || off <= 0) {
|
if (err || off <= 0) {
|
||||||
throw std::runtime_error("to_utf8: U8_APPEND failed");
|
throw std::runtime_error("to_utf8: U8_APPEND failed");
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,7 @@ auto to_utf8(std::wstring_view str) -> std::string {
|
|||||||
std::array<std::uint8_t, U8_MAX_LENGTH> buf{};
|
std::array<std::uint8_t, U8_MAX_LENGTH> buf{};
|
||||||
std::int32_t off{0};
|
std::int32_t off{0};
|
||||||
auto err{false};
|
auto err{false};
|
||||||
U8_APPEND(buf.data(), off, U8_MAX_LENGTH, uni_char, err);
|
U8_APPEND(buf, off, U8_MAX_LENGTH, uni_char, err);
|
||||||
if (err || off <= 0) {
|
if (err || off <= 0) {
|
||||||
throw std::runtime_error("to_utf8: U8_APPEND failed");
|
throw std::runtime_error("to_utf8: U8_APPEND failed");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user