Skip to content

Commit

Permalink
Fix subscript[0] in streams.h
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRubin authored and furszy committed May 8, 2021
1 parent b7e64a5 commit df0584e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streams.h
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ class CBaseDataStream
{
// Special case: stream << stream concatenates like stream += stream
if (!vch.empty())
s.write((char*)&vch[0], vch.size() * sizeof(vch[0]));
s.write((char*)vch.data(), vch.size() * sizeof(value_type));
}

template <typename T>

0 comments on commit df0584e

Please sign in to comment.