Skip to content

Commit

Permalink
[#144]: Fix pip issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 25, 2023
1 parent fef43a3 commit 560fbbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "#!/bin/bash
root_dir=\${1}
build_dir=\${2}
pip install conan==1.59.0
pip install conan==1.59.0 --break-system-packages
conan install \$root_dir --install-folder=build --build=missing --settings=build_type=Release -c tools.system.package_manager:mode=install
wget https://sdk.lunarg.com/sdk/download/1.3.216.0/linux/vulkansdk-linux-x86_64-1.3.216.0.tar.gz
tar xf vulkansdk-linux-x86_64-1.3.216.0.tar.gz -C \$root_dir/dependencies
Expand All @@ -32,4 +32,4 @@ jobs:
apt_pckgs: xorg-dev python3-pip
verbose: true
cppcheck_args: |
--enable=all --suppress=functionStatic --suppress=unusedFunction --inline-suppr --inconclusive
--enable=all --suppress=functionStatic --suppress=unusedFunction --inline-suppr --inconclusive
21 changes: 11 additions & 10 deletions engine/core/state_list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,27 @@
#include "common.hpp"

namespace looper {

template < typename StateT > struct StateList
{
const uint32_t
GetNumFrames() const
uint32_t
GetNumFrames() const
{
return numFrames_;
}

const StateT&
PeekLastState() const
PeekLastState() const
{
return frames_.at(lastIdx_);
}

const StateT&
GetLastState()
GetLastState()
{
lastIdx_ = (lastIdx_ == -1) ? lastFrame_ : lastIdx_;
const auto& frame = frames_.at(lastIdx_-1);
const auto& frame = frames_.at(lastIdx_ - 1);

numFrames_--;
return frame;
}
Expand All @@ -37,10 +38,10 @@ template < typename StateT > struct StateList

private:
std::array< StateT, NUM_FRAMES_TO_SAVE > frames_ = {};
uint32_t numFrames_ = {};
uint32_t firstIdx_ = {};
uint32_t lastIdx_ = {};
const uint32_t lastFrame_ = NUM_FRAMES_TO_SAVE - 1;
int32_t numFrames_ = {};
int32_t firstIdx_ = {};
int32_t lastIdx_ = {};
const int32_t lastFrame_ = NUM_FRAMES_TO_SAVE - 1;
};

} // namespace looper

0 comments on commit 560fbbf

Please sign in to comment.