Fix bug in reserve() and shrink_to_fit().
authorChristian Kamm <christian.kamm@celeraone.com>
Mon, 25 Mar 2013 08:54:26 +0000 (09:54 +0100)
committerJordan DeLong <jdelong@fb.com>
Sun, 21 Apr 2013 20:21:27 +0000 (13:21 -0700)
commitc78e8cf45e441501431aeaf29a342e07c0628fb8
treecd59f60f17bdb989017b30fb8b02e418ef894cd6
parente33bebd37a24287368fdebc0d085d7319083ba08
Fix bug in reserve() and shrink_to_fit().

Summary:
impl_.e_ += newB - impl_.b_; fails when the difference
between newB and impl_.b_ isn't a multiple of sizeof(T).

Test Plan: .

Reviewed By: oyamauchi@fb.com

FB internal diff: D774754
folly/FBVector.h
folly/test/FBVectorTest.cpp