Skip to content

Commit

Permalink
SpriteHandler.h:
Browse files Browse the repository at this point in the history
* Fixing some warnings regarding narrowing conversions.
  • Loading branch information
razterizer committed Dec 10, 2024
1 parent 89ffaca commit 31cb78c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SpriteHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class BitmapSprite : public Sprite
return false;
}
std::vector<T> source = {static_cast<T>(args)...}; // Unpack and assign to the target vector
auto N_trg = target.size();
auto N_src = source.size();
auto N_trg = stlutils::sizeI(target);
auto N_src = stlutils::sizeI(source);

for (int i = 0; i < nr; ++i)
{
Expand Down Expand Up @@ -108,7 +108,7 @@ class BitmapSprite : public Sprite
int nr = std::min(bb.r_len, size.r);
int nc = std::min(bb.c_len, size.c);

auto N_trg = target.size();
auto N_trg = stlutils::sizeI(target);

for (int i = 0; i < nr; ++i)
{
Expand Down

0 comments on commit 31cb78c

Please sign in to comment.