summaryrefslogtreecommitdiffhomepage
path: root/serialize/binary-writer.inl
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-25 14:36:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-25 14:36:29 +0100
commit947a8d3ab773b539dfc18da20d8e5934b5ea9d62 (patch)
treef1a2ce5e913c8553a3fd6087a70f84f82c00669b /serialize/binary-writer.inl
parent7d659dbe06cd8efc1d6eb4ef2c5fbc8ae27a4568 (diff)
use operator""uz c++23 polyfill
Diffstat (limited to 'serialize/binary-writer.inl')
-rw-r--r--serialize/binary-writer.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/binary-writer.inl b/serialize/binary-writer.inl
index 3a5b83d6..e2428c5e 100644
--- a/serialize/binary-writer.inl
+++ b/serialize/binary-writer.inl
@@ -17,7 +17,7 @@ constexpr void binary_writer<It>::write(T x) noexcept
_bytes_written += sizeof(T);
constexpr size_t N = sizeof(T);
const auto buf = std::bit_cast<std::array<char, N>, T>(maybe_byteswap(x));
- for (auto i = 0_uz; i < N; i++)
+ for (auto i = 0uz; i < N; i++)
*it++ = buf[i];
}
@@ -34,7 +34,7 @@ constexpr void binary_writer<It>::write_asciiz_string(StringView str) noexcept
fm_debug_assert(str.flags() & StringViewFlag::NullTerminated);
const auto sz = str.size();
_bytes_written += sz + 1;
- for (auto i = 0_uz; i < sz; i++)
+ for (auto i = 0uz; i < sz; i++)
*it++ = str[i];
*it++ = '\0';
}