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 cometido por GitHub
commit e1ff5b5e8e
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -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;