Skip to content

Commit 47b2b45

Browse files
fix: use braced init list return in hash_hex for Clang-Tidy
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent aea0805 commit 47b2b45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nuclearnet/Log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace {
7272
std::array<char, 19> buf{};
7373
const int n = std::snprintf(buf.data(), buf.size(), "0x%016llx", static_cast<unsigned long long>(hash));
7474
if (n < 0) {
75-
return "0x?";
75+
return {"0x?"};
7676
}
7777
return std::string(buf.data(), static_cast<std::size_t>(n));
7878
}

0 commit comments

Comments
 (0)