mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
No issue - Fix VectorMatchPairs allocating more memory than required
This commit is contained in:
parent
199ff12ba8
commit
952f2273b6
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ ScopedMatchPairs::allocOrExpandArray(size_t pairCount)
|
|||
bool
|
||||
VectorMatchPairs::allocOrExpandArray(size_t pairCount)
|
||||
{
|
||||
if (!vec_.resizeUninitialized(sizeof(MatchPair) * pairCount))
|
||||
if (!vec_.resizeUninitialized(pairCount))
|
||||
return false;
|
||||
|
||||
pairs_ = &vec_[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue