mirror of https://github.com/zeldaret/botw.git
container/Buffer: Fix matching issue in fill()
Because of this inaccuracy, fill() could never be used in practice.
This commit is contained in:
parent
5e6d930816
commit
0e8cad1d0d
|
@ -317,7 +317,7 @@ public:
|
|||
|
||||
void fill(const T& v)
|
||||
{
|
||||
for (s32 i = 0; i < mSize; ++i)
|
||||
for (s32 i = 0, n = mSize; i < n; ++i)
|
||||
mBuffer[i] = v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue