Skip to content

Commit

Permalink
Use long for yaml_utils.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Jul 29, 2024
1 parent d36545c commit 5dc73c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tesseract_common/include/tesseract_common/yaml_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ struct convert<Eigen::VectorXd>
static Node encode(const Eigen::VectorXd& rhs)
{
Node node;
long l = static_cast<Eigen::Index>(rhs.size());
long l = static_cast<long>(rhs.size());
for (long i = 0; i < l; ++i)
node.push_back(rhs(i));

Expand All @@ -344,8 +344,8 @@ struct convert<Eigen::VectorXd>
if (!node.IsSequence())
return false;

rhs.resize(static_cast<Eigen::Index>(node.size()));
long l = static_cast<Eigen::Index>(node.size());
rhs.resize(static_cast<long>(node.size()));
long l = static_cast<long>(node.size());
for (long i = 0; i < l; ++i)
rhs(i) = node[i].as<double>();

Expand Down

0 comments on commit 5dc73c0

Please sign in to comment.