Commit c14f40fc authored by Andrei Alexandrescu's avatar Andrei Alexandrescu Committed by Tudor Bosman

Fix debug build.

Summary: Only tested in release mode, sigh. Fixed a failing asserd.

Test Plan: tested in dbg mode

Reviewed By: tudorb@fb.com

FB internal diff: D546318
parent c3f47cdc
...@@ -1275,7 +1275,7 @@ public: ...@@ -1275,7 +1275,7 @@ public:
push_back(*s++); push_back(*s++);
--n; --n;
memcpy(store_.expand_noinit(n), s, n * sizeof(value_type)); memcpy(store_.expand_noinit(n), s, n * sizeof(value_type));
assert(size() == oldSize + n); assert(size() == oldSize + n + 1);
return *this; return *this;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment