Skip to content

Commit

Permalink
Merge pull request #3648 from finostro/master
Browse files Browse the repository at this point in the history
Fixed code accidentally casting away const-ness
  • Loading branch information
taketwo authored Feb 14, 2020
2 parents 0e452dd + 30e7cb0 commit 643d81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/include/pcl/common/impl/bivariate_polynomial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ pcl::operator<< (std::ostream& os, const pcl::BivariatePolynomialT<real>& p)
template<typename real> void
pcl::BivariatePolynomialT<real>::writeBinary (std::ostream& os) const
{
os.write (reinterpret_cast<char*> (&degree), sizeof (int));
os.write (reinterpret_cast<const char*> (&degree), sizeof (int));
unsigned int paramCnt = getNoOfParametersFromDegree (this->degree);
os.write (reinterpret_cast<char*> (this->parameters), paramCnt * sizeof (real));
os.write (reinterpret_cast<const char*> (this->parameters), paramCnt * sizeof (real));
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 643d81a

Please sign in to comment.