Skip to content

Commit

Permalink
WKBWriter: fix -Wsign-conversion compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
otan committed Aug 31, 2020
1 parent 6c5e20a commit 385ac9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/WKBWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ WKBWriter::writePointEmpty(const Point& g)
writeSRID(g.getSRID());

Coordinate c(DoubleNotANumber, DoubleNotANumber, DoubleNotANumber);
CoordinateArraySequence cas(std::size_t(1), g.getCoordinateDimension());
CoordinateArraySequence cas(std::size_t(1), std::size_t(g.getCoordinateDimension()));
cas.setAt(c, 0);

writeCoordinateSequence(cas, false);
Expand Down Expand Up @@ -256,7 +256,7 @@ WKBWriter::setByteOrder(int bo)
void
WKBWriter::writeGeometryType(int typeId, int SRID)
{
int flag3D = (outputDimension == 3) ? 0x80000000 : 0;
int flag3D = (outputDimension == 3) ? int(0x80000000) : 0;
int typeInt = typeId | flag3D;

if(includeSRID && SRID != 0) {
Expand Down

0 comments on commit 385ac9b

Please sign in to comment.