diff --git a/src/Features/Hud/VelocityGraph.cpp b/src/Features/Hud/VelocityGraph.cpp index f62b3f13..4d2beb24 100644 --- a/src/Features/Hud/VelocityGraph.cpp +++ b/src/Features/Hud/VelocityGraph.cpp @@ -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]; diff --git a/src/Utils/SDK/FixedQueue.hpp b/src/Utils/SDK/FixedQueue.hpp index 060abbe7..5b783ae5 100644 --- a/src/Utils/SDK/FixedQueue.hpp +++ b/src/Utils/SDK/FixedQueue.hpp @@ -8,7 +8,7 @@ class FixedQueue { std::vector 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) {