From e464bd77853c137aeaff388a3b9f578e35b74b36 Mon Sep 17 00:00:00 2001 From: Lenard Szolnoki Date: Fri, 24 Mar 2023 17:18:58 +0000 Subject: [PATCH] Replace memmove with copy_backward --- include/fast_float/bigint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/bigint.h b/include/fast_float/bigint.h index 3ad7315..5076b47 100644 --- a/include/fast_float/bigint.h +++ b/include/fast_float/bigint.h @@ -514,7 +514,7 @@ struct bigint : pow5_tables<> { // move limbs limb* dst = vec.data + n; const limb* src = vec.data; - ::memmove(dst, src, sizeof(limb) * vec.len()); + std::copy_backward(src, src + vec.len(), dst + vec.len()); // fill in empty limbs limb* first = vec.data; limb* last = first + n;