Skip to content

Commit 3ea6d93

Browse files
authored
Merge pull request #2227 from joto/misc-fixes
Various small fixes
2 parents 27dfa82 + 0795976 commit 3ea6d93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

man/osm2pgsql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mandatory for short options too.
154154
available to the outputs. Attributes are: user name, user id, changeset id,
155155
timestamp and version.
156156

157-
\--flat-nodes=FILENAME
157+
-F, \--flat-nodes=FILENAME
158158
: Use a file on disk to store node locations instead of storing them in
159159
memory (in non-slim mode) or in the database (in slim mode). This is much
160160
more efficient than storing the data in the database.

src/expire-tiles.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
expire_tiles::expire_tiles(uint32_t max_zoom,
3737
std::shared_ptr<reprojection> projection)
3838
: m_projection(std::move(projection)), m_maxzoom(max_zoom),
39-
m_map_width(1U << m_maxzoom)
39+
m_map_width(static_cast<int>(1U << m_maxzoom))
4040
{}
4141

4242
void expire_tiles::expire_tile(uint32_t x, uint32_t y)
@@ -167,7 +167,7 @@ void expire_tiles::from_line_segment(geom::point_t const &a,
167167
}
168168

169169
double const x_len = tilec_b.x() - tilec_a.x();
170-
if (x_len > m_map_width / 2) {
170+
if (x_len > m_map_width / 2) { // NOLINT(bugprone-integer-division)
171171
/* If the line is wider than half the map, assume it
172172
crosses the international date line.
173173
These coordinates get normalised again later */

src/geom-area-assembler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace geom {
2727
class area_assembler_t : public osmium::area::detail::BasicAssembler
2828
{
2929
public:
30-
area_assembler_t(osmium::memory::Buffer *buffer);
30+
explicit area_assembler_t(osmium::memory::Buffer *buffer);
3131

3232
/**
3333
* Assemble an area from the given way.

0 commit comments

Comments
 (0)