mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Revert "Update Number initializer to copy the vector's contents directly"
This reverts commit a4522ae0fe
.
This commit is contained in:
parent
0463cb901a
commit
d21474e690
1 changed files with 5 additions and 2 deletions
|
@ -20,8 +20,11 @@ namespace CalcEngine
|
|||
Number::Number(PNUMBER p) noexcept :
|
||||
m_sign{ p->sign },
|
||||
m_exp{ p->exp },
|
||||
m_mantissa{ p->mant }
|
||||
{}
|
||||
m_mantissa{}
|
||||
{
|
||||
m_mantissa.reserve(p->cdigit);
|
||||
copy(p->mant.begin(), p->mant.begin() + p->cdigit, back_inserter(m_mantissa));
|
||||
}
|
||||
|
||||
PNUMBER Number::ToPNUMBER() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue