Merge pull request #295 from acxz/sign-compare

fix sign-compare warning b/t size_t and int
release/4.3a0
Varun Agrawal 2020-05-08 12:31:59 -04:00 committed by GitHub
commit e1ff5b5e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ vector<Point3> defineMicrophones() {
/* ************************************************************************* */
// Create ground truth trajectory
vector<Event> createTrajectory(int n) {
vector<Event> createTrajectory(size_t n) {
vector<Event> trajectory;
double timeOfEvent = 10;
// simulate emitting a sound every second while moving on straight line
@ -110,7 +110,7 @@ NonlinearFactorGraph createGraph(const vector<Point3>& microphones,
/* ************************************************************************* */
// create initial estimate for n events
Values createInitialEstimate(int n) {
Values createInitialEstimate(size_t n) {
Values initial;
Event zero;