Skip to content

Commit

Permalink
fix compiler wanring
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed May 6, 2017
1 parent 12f147d commit 1362e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_config.cpp
Expand Up @@ -280,7 +280,7 @@ void load_config(const config &v)
if(!zoom_levels_str.empty()) {
zoom_levels.clear();
std::transform(zoom_levels_str.begin(), zoom_levels_str.end(), std::back_inserter(zoom_levels), [](const std::string zoom) {
return std::stold(zoom) * tile_size;
return static_cast<int>(std::stold(zoom) * tile_size);
});
}

Expand Down

0 comments on commit 1362e03

Please sign in to comment.