[geos-commits] r4344 - trunk/src/geom
Mateusz Loskot
mateusz at loskot.net
Mon Mar 20 16:20:37 PDT 2017
Author: mloskot
Date: 2017-03-20 16:20:37 -0700 (Mon, 20 Mar 2017)
New Revision: 4344
Modified:
trunk/src/geom/IntersectionMatrix.cpp
Log:
Fix warning: conversion from size_t to int
Modified: trunk/src/geom/IntersectionMatrix.cpp
===================================================================
--- trunk/src/geom/IntersectionMatrix.cpp 2017-03-20 22:09:44 UTC (rev 4343)
+++ trunk/src/geom/IntersectionMatrix.cpp 2017-03-20 23:20:37 UTC (rev 4344)
@@ -1,4 +1,4 @@
-/**********************************************************************
+/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
@@ -160,7 +160,7 @@
{
size_t limit = dimensionSymbols.length();
- for (size_t i = 0; i < limit; i++)
+ for (int i = 0; i < static_cast<int>(limit); i++)
{
int row = i / firstDim;
int col = i % secondDim;
@@ -200,7 +200,7 @@
{
size_t limit = minimumDimensionSymbols.length();
- for (size_t i = 0; i < limit; i++)
+ for (int i = 0; i < static_cast<int>(limit); i++)
{
int row = i / firstDim;
int col = i % secondDim;
More information about the geos-commits
mailing list