diff --git a/tesseract_common/include/tesseract_common/yaml_utils.h b/tesseract_common/include/tesseract_common/yaml_utils.h index 47f0943a507..583526142eb 100644 --- a/tesseract_common/include/tesseract_common/yaml_utils.h +++ b/tesseract_common/include/tesseract_common/yaml_utils.h @@ -332,7 +332,7 @@ struct convert static Node encode(const Eigen::VectorXd& rhs) { Node node; - long l = static_cast(rhs.size()); + long l = static_cast(rhs.size()); for (long i = 0; i < l; ++i) node.push_back(rhs(i)); @@ -344,8 +344,8 @@ struct convert if (!node.IsSequence()) return false; - rhs.resize(static_cast(node.size())); - long l = static_cast(node.size()); + rhs.resize(static_cast(node.size())); + long l = static_cast(node.size()); for (long i = 0; i < l; ++i) rhs(i) = node[i].as();