string element append fix and OS X support note

master
Daniel Kolesa 2016-06-27 19:18:31 +01:00
parent 7912c24e3a
commit 676f76acee
2 changed files with 7 additions and 1 deletions

View File

@ -38,5 +38,11 @@ Currently supported OSes in OctaSTD are Linux, FreeBSD and OS X. Other
systems that implement POSIX API will also work (if they don't, bug reports
are welcome).
OS X support requires Xcode 8 or newer to work. That is the first version to
ship a Clang 3.8 based toolchain, so things will not compile with an older
version of Xcode. Alternatively you are free to use any other supported
compiler from other distribution channels (official Clang, homebrew gcc
or clang, etc.).
Windows is supported at least with the MinGW (gcc) and Clang compilers. MS
Visual Studio is currently unsupported.

View File

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