some J3D/misc cleanup (#2628)

* some j3d cleanup

* begin using uintptr_t

* j3dgraphbase cleanup

* j3dgraphanimator cleanup
This commit is contained in:
TakaRikka
2025-09-04 07:56:59 -07:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
+4 -4
View File
@@ -784,11 +784,11 @@ static int cCc_Init() {
JKRHeap* prev = heap->becomeCurrentHeap();
memset(&DMC, 0, sizeof(DMC));
for (int i = 0; i < ARRAY_SIZE(DynamicNameTable); i++) {
for (int i = 0; i < ARRAY_SIZEU(DynamicNameTable); i++) {
const DynamicNameTableEntry* d = &DynamicNameTable[i];
if (d->name != NULL) {
for (int j = 0; j < ARRAY_SIZE(DMC); j++) {
for (int j = 0; j < ARRAY_SIZEU(DMC); j++) {
if (DMC[j] != NULL) {
if (!strcmp(d->name, DMC[j]->getModuleName())) {
DMC[d->mKey] = DMC[j];
@@ -834,7 +834,7 @@ int cDyl_LinkASync(s16 i_ProfName) {
return cPhs_INIT_e;
}
if (i_ProfName >= ARRAY_SIZE(DMC)) {
if (i_ProfName >= ARRAY_SIZEU(DMC)) {
OSReport_Error("cDyl_Link i_ProfName=%d\n", i_ProfName);
return cPhs_ERROR_e;
}
@@ -950,4 +950,4 @@ int cDylPhs::Unlink(request_of_phase_process_class* i_phase, s16 i_ProfName) {
}
return ret;
}
}