From 0bbc821de28ad8baf7252ed829c782e61c9205db Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Tue, 28 Nov 2023 16:37:07 +0100 Subject: [PATCH 1/2] python: use bp::ssize_t --- bindings/python/utils/conversions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/python/utils/conversions.cpp b/bindings/python/utils/conversions.cpp index 82cf455278..c73707e588 100644 --- a/bindings/python/utils/conversions.cpp +++ b/bindings/python/utils/conversions.cpp @@ -3,7 +3,6 @@ // #include -#include #include "pinocchio/bindings/python/fwd.hpp" #include "pinocchio/bindings/python/spatial/se3.hpp" @@ -38,7 +37,7 @@ namespace pinocchio template SE3 XYZQUATToSE3_bp(const TupleOrList& v) { - ssize_t size = bp::len(v); + bp::ssize_t size = bp::len(v); if(size != 7) { throw std::invalid_argument( From bd23aafe3fd90cda876536f67d2da9f856a2ff08 Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Tue, 28 Nov 2023 16:40:19 +0100 Subject: [PATCH 2/2] changelog: fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68b8898661..4afe855dc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed -- Add missing include `` for recent version of Windows compilers ([#2101](https://github.com/stack-of-tasks/pinocchio/pull/2101)) +- Use bp::ssize_t for recent version of Windows compilers ([#2102](https://github.com/stack-of-tasks/pinocchio/pull/2102)) ## [2.6.21] - 2023-11-27