Skip to content

Commit ea606a1

Browse files
vwaurichOpenModelica-Hudson
authored andcommitted
fix 3dim array for cpp
1 parent f2641d7 commit ea606a1

File tree

1 file changed

+1
-1
lines changed
  • SimulationRuntime/cpp/Include/Core/Math

1 file changed

+1
-1
lines changed

SimulationRuntime/cpp/Include/Core/Math/Array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ class RefArrayDim3 : public RefArray<T, size1*size2*size3>
606606
{
607607
assert((size1*size2*size3) > (size3*(i-1 + size2*(j-1)) + (k-1)));
608608
return *(RefArray<T, size1*size2*size3>::
609-
_ref_array[size3*(i-1 + size2*(j-1)) + (k-1)]);
609+
_ref_array[size3*(size2*(i-1) + (j-1)) + (k-1)]);
610610
}
611611

612612
/**

0 commit comments

Comments
 (0)