Skip to content

Commit 03eaafe

Browse files
landrybm-kuhn
authored andcommittedNov 2, 2015
Fix build on 32-bits archs using LL for large constants
1 parent c445ac1 commit 03eaafe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎tests/src/core/testqgsdistancearea.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,20 @@ void TestQgsDistanceArea::collections()
203203

204204
//collection of polygons
205205
QgsGeometry polys( QgsGeometryFactory::geomFromWkt( "GeometryCollection( Polygon((0 36.53, 5.76 -48.16, 0 25.54, 0 36.53)), Polygon((10 20, 15 20, 15 10, 10 20)) )" ) );
206-
result = myDa.measure( &polys ); //should meaure area
207-
QVERIFY( qgsDoubleNear( result, 670434859475, 1 ) );
206+
result = myDa.measure( &polys ); //should measure area
207+
QVERIFY( qgsDoubleNear( result, 670434859475LL, 1 ) );
208208
result = myDa.measureArea( &polys );
209-
QVERIFY( qgsDoubleNear( result, 670434859475, 1 ) );
209+
QVERIFY( qgsDoubleNear( result, 670434859475LL, 1 ) );
210210
result = myDa.measureLength( &polys );
211211
QVERIFY( qgsDoubleNear( result, 0 ) );
212212

213213
//mixed collection
214214
QgsGeometry mixed( QgsGeometryFactory::geomFromWkt( "GeometryCollection( LineString(0 36.53, 5.76 -48.16), LineString(0 25.54, 24.20 36.70), Polygon((0 36.53, 5.76 -48.16, 0 25.54, 0 36.53)), Polygon((10 20, 15 20, 15 10, 10 20)) )" ) );
215215
result = myDa.measure( &mixed ); //should measure area
216-
QVERIFY( qgsDoubleNear( result, 670434859475, 1 ) );
216+
QVERIFY( qgsDoubleNear( result, 670434859475LL, 1 ) );
217217
//measure area specifically
218218
result = myDa.measureArea( &mixed );
219-
QVERIFY( qgsDoubleNear( result, 670434859475, 1 ) );
219+
QVERIFY( qgsDoubleNear( result, 670434859475LL, 1 ) );
220220
//measure length
221221
result = myDa.measureLength( &mixed );
222222
QVERIFY( qgsDoubleNear( result, 12006159, 1 ) );

0 commit comments

Comments
 (0)
Please sign in to comment.