Permalink
Browse files
Fix subscript[0] in streams.h
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/streams.h
|
|
@@ -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