From c2a6459c947cea796dd10fc42818e02f2ccfd284 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 5 Feb 2023 14:54:26 -0600 Subject: [PATCH] fix(array): initialize counter in TSFixedArray::Set --- storm/array/TSFixedArray.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storm/array/TSFixedArray.hpp b/storm/array/TSFixedArray.hpp index 647fcaf..d9527d3 100644 --- a/storm/array/TSFixedArray.hpp +++ b/storm/array/TSFixedArray.hpp @@ -86,7 +86,7 @@ template void TSFixedArray::Set(uint32_t count, const T* data) { this->ReallocAndClearData(count); - for (uint32_t i; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { new (&this->m_data[i]) T(data[i]); }