mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Initialize mantissa vector with zeros
This commit is contained in:
parent
e297e82fb2
commit
7e3d37fc10
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,8 @@ PNUMBER _createnum( _In_ uint32_t size )
|
||||||
{
|
{
|
||||||
throw( CALC_E_OUTOFMEMORY );
|
throw( CALC_E_OUTOFMEMORY );
|
||||||
}
|
}
|
||||||
|
// Fill mantissa vector with zeros
|
||||||
|
pnumret->mant.insert(pnumret->mant.end(), size, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue