diff options
Diffstat (limited to 'includes/Cmm.h')
-rw-r--r-- | includes/Cmm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/Cmm.h b/includes/Cmm.h index 802ab51a5a..908a3763ca 100644 --- a/includes/Cmm.h +++ b/includes/Cmm.h @@ -855,7 +855,7 @@ src_p = (src) + SIZEOF_StgMutArrPtrs + WDS(src_off); \ bytes = WDS(n); \ \ - prim %memcpy(dst_p, src_p, bytes, WDS(1)); \ + prim %memcpy(dst_p, src_p, bytes, SIZEOF_W); \ \ dst_cards_p = dst_elems_p + WDS(StgMutArrPtrs_ptrs(dst)); \ setCards(dst_cards_p, dst_off, n); \ @@ -875,9 +875,9 @@ bytes = WDS(n); \ \ if ((src) == (dst)) { \ - prim %memmove(dst_p, src_p, bytes, WDS(1)); \ + prim %memmove(dst_p, src_p, bytes, SIZEOF_W); \ } else { \ - prim %memcpy(dst_p, src_p, bytes, WDS(1)); \ + prim %memcpy(dst_p, src_p, bytes, SIZEOF_W); \ } \ \ dst_cards_p = dst_elems_p + WDS(StgMutArrPtrs_ptrs(dst)); \ |