Skip to content

Commit

Permalink
fix: linux warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Sep 19, 2024
1 parent 9accca5 commit 47c02f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/Features/Hud/VelocityGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ struct VelocityData {

std::vector<FixedQueue<VelocityData>> velocityStamps(2, FixedQueue(500, VelocityData()));

static int last_vel[2] = {0, 0};
static int tick_prev[2] = {0, 0};

static int take_off[2] = {0, 0};
static int take_off_display_timeout[2] = {0, 0};

Expand Down
6 changes: 3 additions & 3 deletions src/Utils/SDK/FixedQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class FixedQueue {
}

public:
int size;
FixedQueue(int maxSize)
size_t size;
FixedQueue(size_t maxSize)
: queue(maxSize)
, begin(0)
, end(0)
, size(0) {
}
FixedQueue(int maxSize, T defaultValue)
FixedQueue(size_t maxSize, T defaultValue)
: queue(maxSize, defaultValue)
, begin(0)
, end(0)
Expand Down

0 comments on commit 47c02f9

Please sign in to comment.