From 79f1734f8f7029d7d6ba3e4de7b1498917cefbe2 Mon Sep 17 00:00:00 2001 From: michaeldsmith <37905569+michaeldsmith@users.noreply.github.com> Date: Sat, 6 Aug 2022 17:39:57 -0700 Subject: [PATCH] use default initializer with new char[], closes #85 (#91) --- lib/IlmCtlSimd/CtlSimdReg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IlmCtlSimd/CtlSimdReg.cpp b/lib/IlmCtlSimd/CtlSimdReg.cpp index f599ffef..401767f3 100644 --- a/lib/IlmCtlSimd/CtlSimdReg.cpp +++ b/lib/IlmCtlSimd/CtlSimdReg.cpp @@ -87,7 +87,7 @@ SimdReg::SimdReg (bool varying, size_t elementSize) _varying(varying), _oVarying(false), _offsets(zeroOffset), - _data (new char [ varying ? MAX_REG_SIZE * _eSize : _eSize]), + _data (new char [ varying ? MAX_REG_SIZE * _eSize : _eSize]()), _ref(0) { }