diff --git a/plugins/input/csv/csv_index_featureset.cpp b/plugins/input/csv/csv_index_featureset.cpp index c1701e5cf..1fa76fbaa 100644 --- a/plugins/input/csv/csv_index_featureset.cpp +++ b/plugins/input/csv/csv_index_featureset.cpp @@ -117,8 +117,8 @@ mapnik::feature_ptr csv_index_featureset::next() { auto pos = *itr_++; #if defined(MAPNIK_MEMORY_MAPPED_FILE) - char const* start = (char const*)mapped_region_->get_address() + pos.off; - char const* end = start + pos.size; + char const* start = static_cast(mapped_region_->get_address()) + pos.off; + char const* end = start + pos.size; #else std::fseek(file_.get(), pos.off, SEEK_SET); std::vector record; diff --git a/plugins/input/geojson/geojson_index_featureset.cpp b/plugins/input/geojson/geojson_index_featureset.cpp index d3a4933ec..8b6021e10 100644 --- a/plugins/input/geojson/geojson_index_featureset.cpp +++ b/plugins/input/geojson/geojson_index_featureset.cpp @@ -88,7 +88,7 @@ mapnik::feature_ptr geojson_index_featureset::next() { auto pos = *itr_++; #if defined(MAPNIK_MEMORY_MAPPED_FILE) - char const* start = (char const*)mapped_region_->get_address() + pos.off; + char const* start = static_cast(mapped_region_->get_address()) + pos.off; char const* end = start + pos.size; #else std::fseek(file_.get(), pos.off, SEEK_SET);