@@ -74,8 +74,8 @@ class GEOS_DLL Envelope3d {
7474 , maxy(DoubleNotANumber)
7575 , minz(DoubleNotANumber)
7676 , maxz(DoubleNotANumber)
77- , start_(- 1 )
78- , end_(- 1 )
77+ , start_(0 )
78+ , end_(0 )
7979 {};
8080
8181 /* * \brief
@@ -88,7 +88,7 @@ class GEOS_DLL Envelope3d {
8888 * @param z1 the first y-value
8989 * @param z2 the second y-value
9090 */
91- Envelope3d (double x1, double x2, double y1, double y2, double z1, double z2, int start = - 1 , int end = - 1 , std::string bloom_filter = " " )
91+ Envelope3d (double x1, double x2, double y1, double y2, double z1, double z2, size_t start = 0 , size_t end = 0 , std::string bloom_filter = " " )
9292 {
9393 init (x1, x2, y1, y2, z1, z2, start, end, std::move (bloom_filter));
9494 }
@@ -208,7 +208,7 @@ class GEOS_DLL Envelope3d {
208208 * @param z1 the first y-value
209209 * @param z2 the second y-value
210210 */
211- void init (double x1, double x2, double y1, double y2, double z1, double z2, int start = -1 , int end = -1 , std::string bloom_filter = " " )
211+ void init (double x1, double x2, double y1, double y2, double z1, double z2, size_t start = -1 , size_t end = -1 , std::string bloom_filter = " " )
212212 {
213213 if (x1 < x2) {
214214 minx = x1;
@@ -268,8 +268,8 @@ class GEOS_DLL Envelope3d {
268268 void setToNull ()
269269 {
270270 minx = maxx = miny = maxy = minz = maxz = DoubleNotANumber;
271- start_ = - 1 ;
272- end_ = - 1 ;
271+ start_ = 0 ;
272+ end_ = 0 ;
273273 bloom_filter_ = " " ;
274274 };
275275
@@ -283,7 +283,7 @@ class GEOS_DLL Envelope3d {
283283 {
284284 return std::isnan (maxx) && std::isnan (maxy) && std::isnan (maxz) &&
285285 std::isnan (minx) && std::isnan (miny) && std::isnan (minz) &&
286- start_ == - 1 && end_ == - 1 && bloom_filter_.empty ();
286+ start_ == 0 && end_ == 0 && bloom_filter_.empty ();
287287 };
288288
289289 /* * \brief
@@ -971,25 +971,25 @@ class GEOS_DLL Envelope3d {
971971 operator < (const Envelope3d& a, const Envelope3d& b);
972972
973973 // get the start_
974- int getStart () const
974+ size_t getStart () const
975975 {
976976 return start_;
977977 }
978978
979979 // set the start_
980- void setStart (int start)
980+ void setStart (size_t start)
981981 {
982982 start_ = start;
983983 }
984984
985985 // get the end_
986- int getEnd () const
986+ size_t getEnd () const
987987 {
988988 return end_;
989989 }
990990
991991 // set the end_
992- void setEnd (int end)
992+ void setEnd (size_t end)
993993 {
994994 end_ = end;
995995 }
@@ -1057,10 +1057,10 @@ class GEOS_DLL Envelope3d {
10571057 double maxz;
10581058
10591059 // / the start
1060- int start_;
1060+ size_t start_;
10611061
10621062 // / the end
1063- int end_;
1063+ size_t end_;
10641064
10651065 // / bloom filter
10661066 std::string bloom_filter_;
0 commit comments