diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-07 00:00:43 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-07 00:00:43 +0100 |
commit | 636882316b5191931e144212d93665c10859ac95 (patch) | |
tree | 740f76daceee5bff223b790a4eb91f4e59c5be61 /asl/formatting/format.cpp | |
parent | f0cccbe3285c039553e1fd8b5a5c7830d6087974 (diff) |
Some work on clang-tidy-ing things up
Diffstat (limited to 'asl/formatting/format.cpp')
-rw-r--r-- | asl/formatting/format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<char, kMaxUint64Digits while (v >= 100) { - uint64_t x = v % 100; + const uint64_t x = v % 100; v /= 100; write_two(s_pairs.subspan(static_cast<isize_t>(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<uint64_t>(v) - 1); + const uint64_t absolute_value = ~(bit_cast<uint64_t>(v) - 1); AslFormat(f, absolute_value); } else |