Skip to content

Commit

Permalink
fix: more linux warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Sep 19, 2024
1 parent 47c02f9 commit 4d40741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Features/Hud/VelocityGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void VelocityGraph::Paint(int slot) {

if (!sar_velocitygraph_show_line.GetBool()) return;

for (int i = 1; i < velocityStamps[slot].size - 1; i++) {
for (size_t i = 1; i < velocityStamps[slot].size - 1; i++) {
const auto current = velocityStamps[slot][i];
const auto next = velocityStamps[slot][i + 1];

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/SDK/FixedQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FixedQueue {
std::vector<T> queue;
int begin, end;
inline int BoundIndex(int trueIndex, int side = 0) const { //1 right, -1 left, 0 both
if (side >= 0 && trueIndex >= queue.size()) {
if (side >= 0 && (size_t)trueIndex >= queue.size()) {
trueIndex -= queue.size();
}
if (side <= 0 && trueIndex < 0) {
Expand Down

0 comments on commit 4d40741

Please sign in to comment.