Skip to content

Commit 8c15465

Browse files
committed
Remove implicit signed/unsigned conversion
1 parent 165065e commit 8c15465

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test-node-locations.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ TEST_CASE("node locations in more than one block", "[NoDB]")
3737
{
3838
node_locations_t nl;
3939

40-
std::size_t max_id = 0;
40+
osmid_t max_id = 0;
4141

4242
SECTION("max_id 0") {
4343
max_id = 0;
@@ -63,13 +63,13 @@ TEST_CASE("node locations in more than one block", "[NoDB]")
6363
max_id = 80;
6464
}
6565

66-
for (std::size_t id = 1; id <= max_id; ++id) {
66+
for (osmid_t id = 1; id <= max_id; ++id) {
6767
nl.set(id, {id + 0.1, id + 0.2});
6868
}
6969

70-
REQUIRE(nl.size() == max_id);
70+
REQUIRE(static_cast<osmid_t>(nl.size()) == max_id);
7171

72-
for (std::size_t id = 1; id <= max_id; ++id) {
72+
for (osmid_t id = 1; id <= max_id; ++id) {
7373
auto const location = nl.get(id);
7474
REQUIRE(location.lon() == id + 0.1);
7575
REQUIRE(location.lat() == id + 0.2);

0 commit comments

Comments
 (0)