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/polygonal/ds/ListSet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class ListSet<T> implements Set<T>
**/
public function toArray():Array<T>
{
return mData.toArray(0, size, []);
return NativeArrayTools.toArray(mData, 0, size, []);
}

/**
Expand Down Expand Up @@ -431,4 +431,4 @@ class ListSetIterator<T> implements polygonal.ds.Itr<T>

mData.set(mI, mData.get(--mS));
}
}
}
6 changes: 3 additions & 3 deletions src/polygonal/ds/Printf.hx
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ class Printf
case Tag(type, tagArgs):
if (tagArgs.width == null)
{
if (!Std.is(args[argIndex], Int))
if (!(args[argIndex] is Int))
throw new PrintfError("invalid 'width' argument");
tagArgs.width = args[argIndex++];
}

if (tagArgs.precision == null)
{
if (!Std.is(args[argIndex], Int))
if (!(args[argIndex] is Int))
throw new PrintfError("invalid 'precision' argument");
tagArgs.precision = args[argIndex++];
}
Expand Down Expand Up @@ -996,4 +996,4 @@ private enum FloatType
FNormal;
FScientific;
FNatural;
}
}
6 changes: 3 additions & 3 deletions src/polygonal/ds/PriorityQueue.hx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class PriorityQueue<T:(Prioritizable)> implements Queue<T>
{
if (isEmpty()) return [];

var out = ArrayTools.alloc(size);
var out:Array<T> = ArrayTools.alloc(size);
var t = mData.copy();
var k = size;
var j = 0, i, c, v, s, u;
Expand Down Expand Up @@ -533,7 +533,7 @@ class PriorityQueue<T:(Prioritizable)> implements Queue<T>
**/
public function toArray():Array<T>
{
return mData.toArray(1, size, []);
return NativeArrayTools.toArray(mData, 1, size, []);
}

/**
Expand Down Expand Up @@ -800,4 +800,4 @@ class PriorityQueueIterator<T:(Prioritizable)> implements polygonal.ds.Itr<T>

mObject.remove(mData.get(mI - 1));
}
}
}