mirror of
https://github.com/zeldaret/botw
synced 2026-08-21 22:20:28 -04:00
container/Buffer: Fix matching issue in fill()
Because of this inaccuracy, fill() could never be used in practice.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user