From 46d8844a498291d5411cd23488008e16cc005f2b Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 24 May 2016 01:30:11 +0100 Subject: [PATCH] return fix --- ostd/string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/string.hh b/ostd/string.hh index 8e50c41..76fe14d 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -502,7 +502,7 @@ public: } StringBase &append(Size n, T c) { - if (!n) return; + if (!n) return *this; reserve(p_len + n); for (Size i = 0; i < n; ++n) p_buf.first()[p_len + i] = c; p_len += n;