Skip to content

Commit

Permalink
Merge pull request #2227 from joto/misc-fixes
Browse files Browse the repository at this point in the history
Various small fixes
  • Loading branch information
lonvia authored Aug 15, 2024
2 parents 27dfa82 + 0795976 commit 3ea6d93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion man/osm2pgsql.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ mandatory for short options too.
available to the outputs. Attributes are: user name, user id, changeset id,
timestamp and version.

\--flat-nodes=FILENAME
-F, \--flat-nodes=FILENAME
: Use a file on disk to store node locations instead of storing them in
memory (in non-slim mode) or in the database (in slim mode). This is much
more efficient than storing the data in the database.
Expand Down
4 changes: 2 additions & 2 deletions src/expire-tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
expire_tiles::expire_tiles(uint32_t max_zoom,
std::shared_ptr<reprojection> projection)
: m_projection(std::move(projection)), m_maxzoom(max_zoom),
m_map_width(1U << m_maxzoom)
m_map_width(static_cast<int>(1U << m_maxzoom))
{}

void expire_tiles::expire_tile(uint32_t x, uint32_t y)
Expand Down Expand Up @@ -167,7 +167,7 @@ void expire_tiles::from_line_segment(geom::point_t const &a,
}

double const x_len = tilec_b.x() - tilec_a.x();
if (x_len > m_map_width / 2) {
if (x_len > m_map_width / 2) { // NOLINT(bugprone-integer-division)
/* If the line is wider than half the map, assume it
crosses the international date line.
These coordinates get normalised again later */
Expand Down
2 changes: 1 addition & 1 deletion src/geom-area-assembler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace geom {
class area_assembler_t : public osmium::area::detail::BasicAssembler
{
public:
area_assembler_t(osmium::memory::Buffer *buffer);
explicit area_assembler_t(osmium::memory::Buffer *buffer);

/**
* Assemble an area from the given way.
Expand Down

0 comments on commit 3ea6d93

Please sign in to comment.