We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548b9ca commit 288bf19Copy full SHA for 288bf19
src/AudioTools/CoreAudio/AudioBasic/Collections/Vector.h
@@ -254,10 +254,14 @@ class Vector {
254
255
T &operator[](int index) {
256
assert(p_data != nullptr);
257
+ assert(index < len);
258
return p_data[index];
259
}
260
- T &operator[](const int index) const { return p_data[index]; }
261
+ T &operator[](const int index) const {
262
263
+ return p_data[index];
264
+ }
265
266
bool resize(int newSize, T value) {
267
if (resize(newSize)) {
0 commit comments