We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d687eed commit 431c099Copy full SHA for 431c099
src/supertux/tile_set_parser.cpp
@@ -41,7 +41,7 @@ TileSetParser::TileSetParser(TileSet& tileset, const std::string& filename) :
41
void
42
TileSetParser::parse(uint32_t start, uint32_t end, int32_t offset)
43
{
44
- if (offset && (int)start + offset < 1) {
+ if (offset && static_cast<int32_t>(start) + offset < 1) {
45
start = -offset + 1;
46
log_warning << "The defined offset would assign non-positive ids to tiles, tiles below " << -offset + 1 << " will be ignored." << std::endl;
47
}
0 commit comments