From a807d4c0c1b33ead02fbfb4e1cdf5501b175d926 Mon Sep 17 00:00:00 2001 From: Xuchen Han Date: Fri, 13 Mar 2020 15:03:08 -0700 Subject: [PATCH] Fix include for std::numerical_limits; Fix uninitialized params --- src/BulletSoftBody/btSoftBodyHelpers.cpp | 4 ++-- src/LinearMath/btImplicitQRSVD.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BulletSoftBody/btSoftBodyHelpers.cpp b/src/BulletSoftBody/btSoftBodyHelpers.cpp index 9f64de77d..2cf063772 100644 --- a/src/BulletSoftBody/btSoftBodyHelpers.cpp +++ b/src/BulletSoftBody/btSoftBodyHelpers.cpp @@ -1573,9 +1573,9 @@ void btSoftBodyHelpers::extrapolateBarycentricWeights(btSoftBody* psb) const btVector3& p = psb->m_renderNodes[i].m_x; btVector4 bary; btVector4 optimal_bary; - btScalar min_bary_weight = -1e3; + btScalar min_bary_weight = -SIMD_INFINITY; btAlignedObjectArray optimal_parents; - btScalar dist, optimal_dist; + btScalar dist = 0, optimal_dist = 0; for (int j = 0; j < psb->m_faces.size(); ++j) { const btSoftBody::Face& f = psb->m_faces[j]; diff --git a/src/LinearMath/btImplicitQRSVD.h b/src/LinearMath/btImplicitQRSVD.h index 7b4cfaf21..1e1a3e7b4 100644 --- a/src/LinearMath/btImplicitQRSVD.h +++ b/src/LinearMath/btImplicitQRSVD.h @@ -41,7 +41,7 @@ #ifndef btImplicitQRSVD_h #define btImplicitQRSVD_h - +#include #include "btMatrix3x3.h" class btMatrix2x2 {