Add private function mju_fillInt

PiperOrigin-RevId: 845217293
Change-Id: I604372ab7ea7f4d47d9427d36dc8cd78e60d84ca
This commit is contained in:
Yuval Tassa
2025-12-16 05:15:57 -08:00
committed by Copybara-Service
parent 477a14dcb2
commit 2b9940bc67
9 changed files with 26 additions and 37 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ int mj_floodFill(int* island, int nr, const int* rownnz, const int* rowadr, cons
int* stack) {
// initialize island count, set ids to -1
int nisland = 0;
for (int i=0; i < nr; i++) island[i] = -1;
mju_fillInt(island, -1, nr);
// iterate over vertices, discover islands
for (int i=0; i < nr; i++) {