1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

Start fixing things up to build with a proper cross-compiler.

This commit is contained in:
Andreas Kling 2019-02-22 10:23:06 +01:00
parent 42342d2337
commit 6788dcdb58
4 changed files with 41 additions and 44 deletions

View file

@ -8,7 +8,7 @@ namespace AK {
inline void StringBuilder::will_append(size_t size)
{
if ((m_length + size) > m_buffer.size())
m_buffer.grow(max(16u, m_buffer.size() * 2 + size));
m_buffer.grow(max((size_t)16, m_buffer.size() * 2 + size));
}
StringBuilder::StringBuilder(size_t initial_capacity)