Permalink
Browse files

Fix subscript[0] in streams.h

  • Loading branch information...
1 parent 4cac0d1 commit bc2e7fd984bd669195bf330520f48f55faf81e88 @JeremyRubin JeremyRubin committed Mar 28, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/streams.h
View
@@ -389,7 +389,7 @@ class CDataStream
{
// 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 bc2e7fd

Please sign in to comment.