return fix

This commit is contained in:
q66 2016-05-24 01:30:11 +01:00
parent 5189bab1af
commit 46d8844a49

View file

@ -502,7 +502,7 @@ public:
} }
StringBase &append(Size n, T c) { StringBase &append(Size n, T c) {
if (!n) return; if (!n) return *this;
reserve(p_len + n); reserve(p_len + n);
for (Size i = 0; i < n; ++n) p_buf.first()[p_len + i] = c; for (Size i = 0; i < n; ++n) p_buf.first()[p_len + i] = c;
p_len += n; p_len += n;