Skip to content

Commit

Permalink
fix multiple symbols defined by change size_t to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Jun 30, 2023
1 parent e2c6f65 commit ffb2c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtsam/geometry/CameraSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class CameraSet : public std::vector<CAMERA, Eigen::aligned_allocator<CAMERA>> {

// Get map from key to location in the new augmented Hessian matrix (the
// one including only unique keys).
std::map<Key, size_t> keyToSlotMap;
std::map<Key, uint32_t> keyToSlotMap;
for (size_t k = 0; k < nrUniqueKeys; k++) {
keyToSlotMap[hessianKeys[k]] = k;
}
Expand Down
2 changes: 1 addition & 1 deletion gtsam_unstable/linear/LP.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace gtsam {
using namespace std;

/// Mapping between variable's key and its corresponding dimensionality
using KeyDimMap = std::map<Key, size_t>;
using KeyDimMap = std::map<Key, uint32_t>;
/*
* Iterates through every factor in a linear graph and generates a
* mapping between every factor key and it's corresponding dimensionality.
Expand Down

0 comments on commit ffb2c0d

Please sign in to comment.