mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Make copy operations in _dumpnum explicit
This commit is contained in:
parent
dcd6da52cb
commit
0034823109
1 changed files with 4 additions and 1 deletions
|
@ -138,7 +138,10 @@ void* zmalloc(size_t a)
|
|||
|
||||
void _dupnum(_In_ PNUMBER dest, _In_ const NUMBER * const src)
|
||||
{
|
||||
memcpy(dest, src, (int)(sizeof(NUMBER) + ((src)->cdigit)*(sizeof(MANTTYPE))));
|
||||
dest->sign = src->sign;
|
||||
dest->exp = src->exp;
|
||||
dest->cdigit = src->cdigit;
|
||||
dest->mant = src->mant;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue