From 939b373b226df742b53fd38bf043531d2fd691bf Mon Sep 17 00:00:00 2001 From: saundersp Date: Wed, 30 Jul 2025 11:26:27 +0200 Subject: [PATCH] format_time/src/format_time_ns.cpp : Replaced STRING_BUFFER_SIZE with STR_BUFFER_SIZE --- format_time/src/format_time_ns.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/format_time/src/format_time_ns.cpp b/format_time/src/format_time_ns.cpp index ffb2906..37cf75c 100644 --- a/format_time/src/format_time_ns.cpp +++ b/format_time/src/format_time_ns.cpp @@ -9,8 +9,6 @@ static constexpr const std::array time_formats = { " static constexpr const std::array time_numbers = { 1, 1000, 1000000, u64(1e9), u64(6e10), u64(36e11), u64(864e11), u64(6048e11), u64(26298e11), u64(315576e11), u64(315576e13) }; -#define STRING_BUFFER_SIZE 64 - /** * @brief Convert a given number of nanoseconds to a human readable format * @@ -18,7 +16,7 @@ static constexpr const std::array time_numbers = { 1, 1 * @return Human readable formatted string */ std::string format_time_ns(uint64_t time) noexcept { - char s[STRING_BUFFER_SIZE] = {0}; + char s[STR_BUFFER_SIZE] = {0}; size_t j = 0; if (time == 0){