diff --git a/include/pdal/PointBuffer.hpp b/include/pdal/PointBuffer.hpp index 24491f9487..c5b7e562fe 100644 --- a/include/pdal/PointBuffer.hpp +++ b/include/pdal/PointBuffer.hpp @@ -254,7 +254,7 @@ class PDAL_DLL PointBuffer /// @param pointIndex position to start accessing inline boost::uint8_t* getData(boost::uint32_t pointIndex) const { - return (boost::uint8_t*)&(m_data.front()) + m_byteSize * pointIndex; + return const_cast(&(m_data.front())) + m_byteSize * pointIndex; } /// copies the raw data into your own byte array and sets the size @@ -348,7 +348,6 @@ class PDAL_DLL PointBuffer std::vector m_data; boost::uint32_t m_numPoints; boost::uint32_t m_capacity; - boost::uint64_t m_arraySize; Bounds m_bounds; // We cache m_schema.getByteSize() here because it would end up