aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Rubin <jeremy.l.rubin@gmail.com>2017-03-28 11:35:51 -0400
committerJeremy Rubin <jeremy.l.rubin@gmail.com>2017-07-08 13:33:01 -0700
commitbc2e7fd984bd669195bf330520f48f55faf81e88 (patch)
treec936dc1567857ae7ce1b6f32e9b225f0a66e7781 /src
parent4cac0d1e041db1d7c7eebd6f022f120d08a1610f (diff)
Fix subscript[0] in streams.h
Diffstat (limited to 'src')
-rw-r--r--src/streams.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/streams.h b/src/streams.h
index 8dc5a19ead..245fb9cd8f 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -389,7 +389,7 @@ public:
{
// 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>