Skip to content

Commit cc66688

Browse files
committed
[tests] Fix OSM unit test on Mac
1 parent c8c802f commit cc66688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/analysis/testopenstreetmap.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ void TestOpenStreetMap::importAndQueries()
139139
// list nodes
140140

141141
QgsOSMNodeIterator nodes = db.listNodes();
142-
QCOMPARE( nodes.next().id(), 11111 );
143-
QCOMPARE( nodes.next().id(), 360769661 );
142+
QCOMPARE( nodes.next().id(), ( qint64 )11111 );
143+
QCOMPARE( nodes.next().id(), ( qint64 )360769661 );
144144
nodes.close();
145145

146146
// query way
@@ -166,7 +166,7 @@ void TestOpenStreetMap::importAndQueries()
166166
// list ways
167167

168168
QgsOSMWayIterator ways = db.listWays();
169-
QCOMPARE( ways.next().id(), 32137532 );
169+
QCOMPARE( ways.next().id(), ( qint64 )32137532 );
170170
QCOMPARE( ways.next().isValid(), false );
171171
ways.close();
172172

0 commit comments

Comments
 (0)