Skip to content

Commit

Permalink
bug fix for r25611
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25619 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Apr 19, 2015
1 parent 7965cf2 commit 12f2ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/cpp/Include/Core/Math/ArraySlice.h
Expand Up @@ -167,7 +167,7 @@ class ArraySlice: public BaseArray<T> {
}

virtual int getDim(size_t sliceDim) const {
return (int)_dims[sliceDim];
return (int)_dims[sliceDim - 1];
}

virtual T* getData() {
Expand Down

0 comments on commit 12f2ec1

Please sign in to comment.