Skip to content

Commit

Permalink
fix(Archive): make MSVC even more happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 29, 2023
1 parent cce10df commit 7cc7e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archive/ArchiveAscii.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ namespace zenkit {

template <typename T, size_t N>
std::enable_if_t<!std::is_floating_point_v<T>, std::string_view> intosv(std::array<char, N>& buf, T v) {
auto r = std::to_chars(buf.begin(), buf.end(), v);
return std::string_view {buf.begin(), static_cast<size_t>(r.ptr - buf.begin())};
auto r = std::to_chars(buf.data(), buf.data() + buf.size(), v);
return std::string_view {buf.data(), static_cast<size_t>(r.ptr - buf.begin())};
}

std::uint32_t WriteArchiveAscii::write_object_begin(std::string_view object_name,
Expand Down

0 comments on commit 7cc7e65

Please sign in to comment.