[msvc] Fix warnings, mainly casting to smaller types (#270)
If the checks by GitHub Actions checks are met, then it seems good to go. Thanks for supporting FOSS4G!
This commit is contained in:
@@ -39,7 +39,7 @@ FeatureIdentifier VectorTileFeature::getID() const {
|
||||
|
||||
const GeometryCollection& VectorTileFeature::getGeometries() const {
|
||||
if (!lines) {
|
||||
const float scale = float(util::EXTENT) / feature.getExtent();
|
||||
const auto scale = static_cast<float>(util::EXTENT) / feature.getExtent();
|
||||
lines = feature.getGeometries<GeometryCollection>(scale);
|
||||
if (feature.getVersion() < 2 && feature.getType() == mapbox::vector_tile::GeomType::POLYGON) {
|
||||
lines = fixupPolygons(*lines);
|
||||
|
||||
Reference in New Issue
Block a user