Skip to content

Commit 3fd8a15

Browse files
committed
fix some compiler warnings
1 parent 52adea9 commit 3fd8a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Grains.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void Grains::prepare()
3333
void Grains::rotate()
3434
{
3535
std::unique_ptr<Grain> grain = std::move(vector.back());
36-
for (int i = vector.size() - 1; i > 0; --i)
36+
for (auto i = vector.size() - 1; i > 0; --i)
3737
vector[i] = std::move(vector[i - 1]);
3838
vector.front() = std::move(grain);
3939

src/Resample.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ void resample(Internal &internal, External &external, double ratioBegin, double
210210
BUNGEE_ASSERT1(ratioEnd > 0);
211211
}
212212

213-
external.unmutedBegin = std::clamp<int>(external.unmutedBegin, 0, external.activeFrameCount);
214-
external.unmutedEnd = std::clamp<int>(external.unmutedEnd, external.unmutedBegin, external.activeFrameCount);
213+
external.unmutedBegin = std::clamp<ptrdiff_t>(external.unmutedBegin, 0, external.activeFrameCount);
214+
external.unmutedEnd = std::clamp<ptrdiff_t>(external.unmutedEnd, external.unmutedBegin, external.activeFrameCount);
215215

216216
if (ratioBegin == ratioEnd)
217217
resampleSpecial<Interpolation, Mode, true>(internal, external, ratioBegin, ratioEnd);

0 commit comments

Comments
 (0)