Skip to content

Commit 431c099

Browse files
committed
Fix build issues
1 parent d687eed commit 431c099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/supertux/tile_set_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TileSetParser::TileSetParser(TileSet& tileset, const std::string& filename) :
4141
void
4242
TileSetParser::parse(uint32_t start, uint32_t end, int32_t offset)
4343
{
44-
if (offset && (int)start + offset < 1) {
44+
if (offset && static_cast<int32_t>(start) + offset < 1) {
4545
start = -offset + 1;
4646
log_warning << "The defined offset would assign non-positive ids to tiles, tiles below " << -offset + 1 << " will be ignored." << std::endl;
4747
}

0 commit comments

Comments
 (0)