From 3351f6b3039c7463e846d6c25cc1f46aecc5414f Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 10 Dec 2021 21:51:09 +0200 Subject: [PATCH] =?UTF-8?q?l*sizeof(B*)=20=E2=86=92=20l*sizeof(B)=20for=20?= =?UTF-8?q?copying=20l=20items=20in=20a=20B*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/mut.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/mut.h b/src/utils/mut.h index 76103918..330be673 100644 --- a/src/utils/mut.h +++ b/src/utils/mut.h @@ -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; }