Skip to content

Commit 4338e7d

Browse files
pcaspersjenkins
authored andcommitted
QPR-11984 fix
1 parent 71ef232 commit 4338e7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

QuantExt/qle/math/randomvariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void RandomVariable::expand() {
330330
return;
331331
deterministic_ = false;
332332
data_ = new double[n_];
333-
std::fill(data_, data_ + n_ * sizeof(double), data0_);
333+
std::fill(data_, data_ + n_, data0_);
334334
}
335335

336336
void RandomVariable::checkTimeConsistencyAndUpdate(const Real t) {

0 commit comments

Comments
 (0)