Add engine-internal convenience macro for allocating typed arrays, improve error message.
PiperOrigin-RevId: 705126655 Change-Id: I2bd8fada6d33a919d2fb82297f93ac57958355a4
This commit is contained in:
committed by
Copybara-Service
parent
3ca97248a3
commit
2691887500
@@ -892,7 +892,7 @@ void mj_printFormattedData(const mjModel* m, mjData* d, const char* filename,
|
||||
|
||||
// allocate full inertia if it's small
|
||||
if (m->nv <= 200) {
|
||||
M = mj_stackAllocNum(d, m->nv*m->nv);
|
||||
M = mjSTACKALLOC(d, m->nv*m->nv, mjtNum);
|
||||
}
|
||||
|
||||
#ifdef MEMORY_SANITIZER
|
||||
|
||||
Reference in New Issue
Block a user