Skip to content

Commit

Permalink
fix(Archive): make MSVC even more happier
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 29, 2023
1 parent 7cc7e65 commit 6b3d431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/archive/ArchiveAscii.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ 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.data(), buf.data() + buf.size(), v);
return std::string_view {buf.data(), static_cast<size_t>(r.ptr - buf.begin())};
return std::string_view {buf.data(), static_cast<size_t>(r.ptr - buf.data())};
}

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

0 comments on commit 6b3d431

Please sign in to comment.