Skip to content

Commit bc2e7fd

Browse files
committed
Fix subscript[0] in streams.h
1 parent 4cac0d1 commit bc2e7fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class CDataStream
389389
{
390390
// Special case: stream << stream concatenates like stream += stream
391391
if (!vch.empty())
392-
s.write((char*)&vch[0], vch.size() * sizeof(vch[0]));
392+
s.write((char*)vch.data(), vch.size() * sizeof(value_type));
393393
}
394394

395395
template<typename T>

0 commit comments

Comments
 (0)