From 89c6bd6af1cd4ee8e0e560acc7c5113bba07b089 Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Thu, 7 May 2020 11:47:34 -0400 Subject: [PATCH] fix sign-compare warning --- gtsam_unstable/examples/TimeOfArrivalExample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;