Permalink
Browse files

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
  • Loading branch information...
1 parent c3f47cd commit c14f40fcb7fef6a2b5c667be5e6a380e82f6233d Andrei Alexandrescu committed with tudor Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 folly/FBString.h
View
@@ -1275,7 +1275,7 @@ class basic_fbstring {
push_back(*s++);
--n;
memcpy(store_.expand_noinit(n), s, n * sizeof(value_type));
- assert(size() == oldSize + n);
+ assert(size() == oldSize + n + 1);
return *this;
}

0 comments on commit c14f40f

Please sign in to comment.