Cleanup: pass the sizeof(..) as the second arg for array allocation

By argument naming and convention this is the intended argument order.
This commit is contained in:
2021-10-14 10:17:33 +11:00
parent c6e956bbb1
commit 576142dc85
23 changed files with 56 additions and 56 deletions

View File

@@ -1496,7 +1496,7 @@ void multires_topology_changed(Mesh *me)
if (!mdisp->totdisp || !mdisp->disps) {
if (grid) {
mdisp->totdisp = grid;
mdisp->disps = MEM_calloc_arrayN(sizeof(float[3]), mdisp->totdisp, "mdisp topology");
mdisp->disps = MEM_calloc_arrayN(mdisp->totdisp, sizeof(float[3]), "mdisp topology");
}
continue;