mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Replace memmove with copy_backward
This commit is contained in:
parent
6bd1e776b2
commit
e464bd7785
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user