l*sizeof(B*) → l*sizeof(B) for copying l items in a B*
This commit is contained in:
parent
3da8302249
commit
3351f6b303
@ -232,7 +232,7 @@ static void mut_copyG(Mut* m, usz ms, B x, usz xs, usz l) { assert(isArr(x));
|
||||
B* mpo = m->aB+ms;
|
||||
B* xp = arr_bptr(x);
|
||||
if (xp!=NULL) {
|
||||
memcpy(mpo, xp+xs, l*sizeof(B*));
|
||||
memcpy(mpo, xp+xs, l*sizeof(B));
|
||||
for (usz i = 0; i < l; i++) inc(mpo[i]);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user