From 636882316b5191931e144212d93665c10859ac95 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 7 Mar 2025 00:00:43 +0100 Subject: Some work on clang-tidy-ing things up --- asl/formatting/format.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/formatting/format.cpp') diff --git a/asl/formatting/format.cpp b/asl/formatting/format.cpp index 4f35a52..732d89f 100644 --- a/asl/formatting/format.cpp +++ b/asl/formatting/format.cpp @@ -151,7 +151,7 @@ asl::string_view asl::format_uint64(uint64_t v, asl::span= 100) { - uint64_t x = v % 100; + const uint64_t x = v % 100; v /= 100; write_two(s_pairs.subspan(static_cast(x * 2)).first<2>()); } @@ -195,7 +195,7 @@ void asl::AslFormat(Formatter& f, int64_t v) if (v < 0) { f.write("-"); - uint64_t absolute_value = ~(bit_cast(v) - 1); + const uint64_t absolute_value = ~(bit_cast(v) - 1); AslFormat(f, absolute_value); } else -- cgit