Skip to content
Snippets Groups Projects
Commit 3f850233 authored by Michael Haupt's avatar Michael Haupt
Browse files

allow same-type value transfers from int sequences in int vectors

parent fde96557
Branches
No related tags found
No related merge requests found
......@@ -209,8 +209,8 @@ public final class RIntVector extends RVector implements RAbstractIntVector {
@Override
public void transferElementSameType(int toIndex, RAbstractVector fromVector, int fromIndex) {
RIntVector other = (RIntVector) fromVector;
data[toIndex] = other.data[fromIndex];
RAbstractIntVector other = (RAbstractIntVector) fromVector;
data[toIndex] = other.getDataAt(fromIndex);
}
public Class<?> getElementClass() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment