mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Replace memmoves in support.cpp by std::copy calls
This commit is contained in:
parent
79a5bbabd7
commit
7da4a7f6fd
1 changed files with 2 additions and 2 deletions
|
@ -695,7 +695,7 @@ void trimit( PRAT *px, int32_t precision)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memmove( pp->mant, &(pp->mant[trim-pp->exp]), sizeof(MANTTYPE)*(pp->cdigit-trim+pp->exp) );
|
copy(pp->mant.begin() + (trim-pp->exp), pp->mant.begin(), pp->cdigit-trim+pp->exp);
|
||||||
pp->cdigit -= trim-pp->exp;
|
pp->cdigit -= trim-pp->exp;
|
||||||
pp->exp = 0;
|
pp->exp = 0;
|
||||||
}
|
}
|
||||||
|
@ -706,7 +706,7 @@ void trimit( PRAT *px, int32_t precision)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memmove( pq->mant, &(pq->mant[trim-pq->exp]), sizeof(MANTTYPE)*(pq->cdigit-trim+pq->exp) );
|
copy(pq->mant.begin() + (trim-pq->exp), pq->mant.begin(), pq->cdigit-trim+pq->exp);
|
||||||
pq->cdigit -= trim-pq->exp;
|
pq->cdigit -= trim-pq->exp;
|
||||||
pq->exp = 0;
|
pq->exp = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue