From 0bdcb37d877886561624cc754d61a7f04ede77c1 Mon Sep 17 00:00:00 2001
From: Olivier Stasse <ostasse@laas.fr>
Date: Mon, 9 Apr 2018 19:05:12 +0200
Subject: [PATCH] Fix virtual destructor for pinocchiorobot Fix sizetype.

---
 include/jrl/walkgen/pinocchiorobot.hh | 2 +-
 src/RobotDynamics/pinocchiorobot.cpp  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/jrl/walkgen/pinocchiorobot.hh b/include/jrl/walkgen/pinocchiorobot.hh
index 7f8ab047..a2d5c5a5 100644
--- a/include/jrl/walkgen/pinocchiorobot.hh
+++ b/include/jrl/walkgen/pinocchiorobot.hh
@@ -52,7 +52,7 @@ namespace PatternGeneratorJRL
 
     /// Constructor and Destructor
     PinocchioRobot();
-    ~PinocchioRobot();
+    virtual ~PinocchioRobot();
 
     /// Functions computing kinematics and dynamics
     void computeInverseDynamics();
diff --git a/src/RobotDynamics/pinocchiorobot.cpp b/src/RobotDynamics/pinocchiorobot.cpp
index 1c2f3cf2..09c20074 100644
--- a/src/RobotDynamics/pinocchiorobot.cpp
+++ b/src/RobotDynamics/pinocchiorobot.cpp
@@ -467,7 +467,8 @@ std::vector<se3::JointIndex> PinocchioRobot::jointsBetween
       ++lastCommonRank;
   }
 
-  for(unsigned k=fromRootToFirst.size()-1; k>lastCommonRank ; --k)
+  for(std::vector<se3::JointIndex>::size_type k=fromRootToFirst.size()-1;
+      k>lastCommonRank ; --k)
   {
     out.push_back(fromRootToFirst[k]);
   }
-- 
GitLab