Skip to content

Commit

Permalink
GRAPHICS: Fix negation of unsigned integer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
elasota authored and bluegr committed Dec 11, 2023
1 parent 9e13093 commit e1fc76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphics/nine_patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ NinePatchBitmap::NinePatchBitmap(Graphics::ManagedSurface *bmp, bool owns_bitmap
byte palette[256 * 3];
bmp->grabPalette(palette, 0, 256);

black = -1;
white = -1;
black = (uint32)-1;
white = (uint32)-1;

for (int j = 0; j < 256; j++) {
byte r = palette[(j * 3) + 0];
Expand Down

0 comments on commit e1fc76c

Please sign in to comment.