Fix msan failure in __repr__ when upgraded to NumPy 1.24.

PiperOrigin-RevId: 505661236
Change-Id: I37ea339679870d23886e3c95f51451349fa1de2c
This commit is contained in:
Saran Tunyasuvunakool
2023-01-30 05:10:39 -08:00
committed by Copybara-Service
parent 929e09f84a
commit f1af86cf82
3 changed files with 41 additions and 2 deletions
+2
View File
@@ -102,6 +102,7 @@ class MjModelGroupedViewsBase {
int index() const { return index_; }
const std::string& name() const { return name_; }
raw::MjModel* ptr() { return m_; }
protected:
int index_;
@@ -168,6 +169,7 @@ class MjDataGroupedViewsBase {
int index() const { return index_; }
const std::string& name() const { return name_; }
raw::MjData* ptr() { return d_; }
protected:
int index_;