diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-08-14 09:27:30 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-09-04 13:11:26 +0200 |
commit | ada356208e153e088c729c102d5d79c9c9d66f1a (patch) | |
tree | f379a875fbf5208de2fe211c0f5c343bc1bc51f0 /src/support/lockedpool.cpp | |
parent | 59ecacfc84af13e5a1608e7d970315d07dcb0269 (diff) |
Fix typos reported by codespell
Diffstat (limited to 'src/support/lockedpool.cpp')
-rw-r--r-- | src/support/lockedpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp index 070b3ed80e..8d577cf521 100644 --- a/src/support/lockedpool.cpp +++ b/src/support/lockedpool.cpp @@ -75,7 +75,7 @@ void* Arena::alloc(size_t size) // Create the used-chunk, taking its space from the end of the free-chunk const size_t size_remaining = size_ptr_it->first - size; - auto alloced = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first; + auto allocated = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first; chunks_free_end.erase(size_ptr_it->second + size_ptr_it->first); if (size_ptr_it->first == size) { // whole chunk is used up @@ -88,7 +88,7 @@ void* Arena::alloc(size_t size) } size_to_free_chunk.erase(size_ptr_it); - return reinterpret_cast<void*>(alloced->first); + return reinterpret_cast<void*>(allocated->first); } void Arena::free(void *ptr) |