diff --git a/gtsam_unstable/examples/TimeOfArrivalExample.cpp b/gtsam_unstable/examples/TimeOfArrivalExample.cpp index 9991e04b6..f72b2cf95 100644 --- a/gtsam_unstable/examples/TimeOfArrivalExample.cpp +++ b/gtsam_unstable/examples/TimeOfArrivalExample.cpp @@ -53,7 +53,7 @@ vector defineMicrophones() { /* ************************************************************************* */ // Create ground truth trajectory -vector createTrajectory(int n) { +vector createTrajectory(size_t n) { vector trajectory; double timeOfEvent = 10; // simulate emitting a sound every second while moving on straight line @@ -110,7 +110,7 @@ NonlinearFactorGraph createGraph(const vector& microphones, /* ************************************************************************* */ // create initial estimate for n events -Values createInitialEstimate(int n) { +Values createInitialEstimate(size_t n) { Values initial; Event zero;