Don't use mj_stackAlloc for int allocations.
PiperOrigin-RevId: 559846094 Change-Id: I43eeec0b1970b2c6047be4e7c3548a4ce9aa6f5f
This commit is contained in:
committed by
Copybara-Service
parent
5c9b222566
commit
4db3377467
@@ -1615,7 +1615,7 @@ static inline int mj_nc(const mjModel* m, mjData* d, int* nnz) {
|
||||
}
|
||||
|
||||
mjMARKSTACK;
|
||||
int *chain = (int*)mj_stackAlloc(d, m->nv);
|
||||
int *chain = mj_stackAllocInt(d, m->nv);
|
||||
|
||||
for (int i=0; i < ncon; i++) {
|
||||
if (d->contact[i].exclude) {
|
||||
|
||||
Reference in New Issue
Block a user