summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <erwin.coumans@gmail.com>2022-03-25 19:49:53 -0700
committerErwin Coumans <erwin.coumans@gmail.com>2022-03-25 19:49:53 -0700
commit0070e0d52b3f423199d03989c77ec360b2a6fecb (patch)
treee15cbd09059483e7977a4b6f7fbb57d616669b9d
parent5d75748c0d41b7bb189b1d4a29ce8ae82cafde9e (diff)
downloadbullet3-0070e0d52b3f423199d03989c77ec360b2a6fecb.tar.gz
fix compile error
bump up to pybullet 3.22
-rw-r--r--setup.py2
-rw-r--r--src/BulletSoftBody/BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 15b3f59c1..a25959865 100644
--- a/setup.py
+++ b/setup.py
@@ -505,7 +505,7 @@ if 'BT_USE_EGL' in EGL_CXX_FLAGS:
setup(
name='pybullet',
- version='3.2.1',
+ version='3.2.2',
description=
'Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning',
long_description=
diff --git a/src/BulletSoftBody/BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp b/src/BulletSoftBody/BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp
index d7e4cc2b8..0f95bc53b 100644
--- a/src/BulletSoftBody/BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp
+++ b/src/BulletSoftBody/BulletReducedDeformableBody/btReducedDeformableBodyHelpers.cpp
@@ -159,8 +159,8 @@ void btReducedDeformableBodyHelpers::readBinaryVec(btReducedDeformableBody::tDen
{
std::ifstream f_in(file, std::ios::in | std::ios::binary);
// first get size
- unsigned int size;
- f_in.read((char*)&size, sizeof(uint32_t));
+ unsigned int size=0;
+ f_in.read((char*)&size, 4);//sizeof(unsigned int));
btAssert(size >= n_size); // make sure the #requested mode is smaller than the #available modes
// read data
@@ -182,8 +182,8 @@ void btReducedDeformableBodyHelpers::readBinaryMat(btReducedDeformableBody::tDen
{
std::ifstream f_in(file, std::ios::in | std::ios::binary);
// first get size
- unsigned int v_size;
- f_in.read((char*)&v_size, sizeof(uint32_t));
+ unsigned int v_size=0;
+ f_in.read((char*)&v_size, 4);//sizeof(unsigned int));
btAssert(v_size >= n_modes * n_full); // make sure the #requested mode is smaller than the #available modes
// read data