summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/exe2ico.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/exe2ico.c b/tools/exe2ico.c
index 5d92994..d84d3df 100644
--- a/tools/exe2ico.c
+++ b/tools/exe2ico.c
@@ -119,7 +119,11 @@ int main(int argc, char *argv[]) {
 		dataOffset += -dataOffset & ((1 << alignmentShift) - 1);
 	}
 	// Padding before the first aligned data offset
-	for (Uint8 i = 0; i < (-iconDirLength & ((1 << alignmentShift) - 1)); ++i) {
+	for (
+		Uint32 i = 0;
+		i < (-iconDirLength & ((1 << alignmentShift) - 1));
+		++i
+	) {
 		SDL_WriteU8(ico, 0);
 	}