Merge pull request #4218 from erwincoumans/master

fix compile error
This commit is contained in:
erwincoumans
2022-03-25 19:50:48 -07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

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

View File

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