Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ds/ArrayList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ class ArrayList<T> implements List<T>
**/
public function toArray():Array<T>
{
return mData.toArray(0, size, []);
return ds.tools.NativeArrayTools.toArray(mData, 0, size, []);
}

/**
Expand Down Expand Up @@ -1320,4 +1320,4 @@ class ArrayListIterator<T> implements ds.Itr<T>
mObject.removeAt(--mI);
mS--;
}
}
}
3 changes: 1 addition & 2 deletions src/ds/tools/NativeArrayTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ class NativeArrayTools
#elseif java
return untyped Array.alloc(len);
#elseif cpp
cpp.NativeArray.create(len);
return a;
return cpp.NativeArray.create(len);
#elseif python
return python.Syntax.code("[{0}]*{1}", null, len);
#elseif eval
Expand Down