mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
common array: fix a wrong size.
This commit is contained in:
parent
463fc853be
commit
d99d8a565f
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ struct Array
|
|||
void operator=(const Array& rhs)
|
||||
{
|
||||
reserve(rhs.count);
|
||||
if (rhs.count > 0) memcpy(data, rhs.data, sizeof(T) * reserved);
|
||||
if (rhs.count > 0) memcpy(data, rhs.data, sizeof(T) * rhs.count);
|
||||
count = rhs.count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue