Skip to content

Commit

Permalink
Merge pull request #795 from acxz/warning-int
Browse files Browse the repository at this point in the history
use size_t variable type
  • Loading branch information
ProfFan authored Jun 14, 2021
2 parents 4b76601 + a60bac2 commit 9430807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/nonlinear/NonlinearFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ GaussianFactorGraph::shared_ptr NonlinearFactorGraph::linearize(const Values& li
_LinearizeOneFactor(*this, linearizationPoint, *linearFG));

// Linearize all non-sendable factors
for(int i = 0; i < size(); i++) {
for(size_t i = 0; i < size(); i++) {
auto& factor = (*this)[i];
if(factor && !(factor->sendable())) {
(*linearFG)[i] = factor->linearize(linearizationPoint);
Expand Down

0 comments on commit 9430807

Please sign in to comment.