Skip to content

Commit

Permalink
use default initializer with new char[], closes ampas#85 (ampas#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith authored Aug 7, 2022
1 parent 8e2bc23 commit 79f1734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IlmCtlSimd/CtlSimdReg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
Expand Down

0 comments on commit 79f1734

Please # to comment.