aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-08-14 09:27:30 +0200
committerpracticalswift <[email protected]>2018-09-04 13:11:26 +0200
commitada356208e153e088c729c102d5d79c9c9d66f1a (patch)
treef379a875fbf5208de2fe211c0f5c343bc1bc51f0 /src/support
parentMerge #11599: scripted-diff: Small locking rename (diff)
downloaddiscoin-ada356208e153e088c729c102d5d79c9c9d66f1a.tar.xz
discoin-ada356208e153e088c729c102d5d79c9c9d66f1a.zip
Fix typos reported by codespell
Diffstat (limited to 'src/support')
-rw-r--r--src/support/lockedpool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp
index 070b3ed80..8d577cf52 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)