Remove usage of size_t types in mjModel, use mjtSize (uint64_t) instead to improve portabilty of MJB files to WASM.

PiperOrigin-RevId: 789321991
Change-Id: Ic25fab876c347fc75f5ca24cad09e8fd972f035f
This commit is contained in:
Matija Kecman
2025-07-31 07:06:58 -07:00
committed by Copybara-Service
parent 4c288c19ac
commit 23fa7c00d5
11 changed files with 224 additions and 185 deletions
+5
View File
@@ -1367,7 +1367,12 @@ void mju_zeroInt(int* res, int n) {
memset(res, 0, n*sizeof(int));
}
// set mjtSize vector to 0
void mju_zeroSize(mjtSize* res, size_t n) {
memset(res, 0, n*sizeof(mjtSize));
}
// set size_t vector to 0
void mju_zeroSizeT(size_t* res, size_t n) {
memset(res, 0, n*sizeof(size_t));
}