Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Vedder <vedder@mbits.info>2022-05-04 15:30:48 +0300
committerStephan Vedder <vedder@mbits.info>2022-05-04 15:30:48 +0300
commit59dfb3c04c72003a9ac8bd504720237318852269 (patch)
tree9a9b8a8b87d721a9c171c1fdb65e4f5de52b1490
parent30be6f88713ed6e1b043cc72cafc1df7728f0710 (diff)
Fixes
-rw-r--r--Source/Internal/timer.cpp4
-rw-r--r--Source/Memory/stack_allocator.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Internal/timer.cpp b/Source/Internal/timer.cpp
index 91848e1c..2e6f84ee 100644
--- a/Source/Internal/timer.cpp
+++ b/Source/Internal/timer.cpp
@@ -185,7 +185,7 @@ Timer::Timer():
last_tick(0),
wall_time(0)
{
- for(unsigned long & i : frame){
- i=0;
+ for (auto& i : frame) {
+ i = 0;
}
}
diff --git a/Source/Memory/stack_allocator.cpp b/Source/Memory/stack_allocator.cpp
index 4e07c452..1a46ffc4 100644
--- a/Source/Memory/stack_allocator.cpp
+++ b/Source/Memory/stack_allocator.cpp
@@ -101,7 +101,7 @@ uintptr_t StackAllocator::TopBlockSize() {
}
void StackAllocator::Init(void* p_mem, size_t p_size) {
- for (unsigned long & stack_block_pt : stack_block_pts) {
+ for (auto & stack_block_pt : stack_block_pts) {
stack_block_pt = 0;
}
mem = p_mem;
@@ -110,7 +110,7 @@ void StackAllocator::Init(void* p_mem, size_t p_size) {
}
void StackAllocator::Dispose() {
- for (unsigned long & stack_block_pt : stack_block_pts) {
+ for (auto & stack_block_pt : stack_block_pts) {
stack_block_pt = 0;
}
mem = 0;