git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 41799efef1e12782dfb03c4aee3d060fc50a1588
parent 31e8698341e4f49238ad0d8f9dbabc92fa31749f
Author: Toxa <untoxa@mail.ru>
Date:   Tue, 17 Jan 2023 22:16:16 +0300

fix signed/unsigned int compare warning

Diffstat:
Mgbdk-support/png2asset/png2asset.cpp4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gbdk-support/png2asset/png2asset.cpp b/gbdk-support/png2asset/png2asset.cpp @@ -490,7 +490,7 @@ int FindOrCreateSubPalette(const SetPal& pal, vector< SetPal >& palettes) } //Check if it matches any palettes or create a new one int i; - for (i = 0; i < palettes.size(); ++i) + for (i = 0; i < (int)palettes.size(); ++i) { //Try to merge this palette with any of the palettes (checking if they are equal is not enough since the palettes can have less than 4 colors) SetPal merged(palettes[i]); @@ -503,7 +503,7 @@ int FindOrCreateSubPalette(const SetPal& pal, vector< SetPal >& palettes) } } - if (i == palettes.size()) + if (i == (int)palettes.size()) { //Palette not found, add a new one palettes.push_back(pal);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.