Skip to content

Commit

Permalink
Fix compiler warning in Array.take() method (#611)
Browse files Browse the repository at this point in the history
Fixes one of the compiler warnings mentioned in #610.
  • Loading branch information
rvanasa authored Feb 21, 2024
1 parent c86d76f commit 4c2a90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Array.mo
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ module {
let len = Prim.abs(length);
let size = array.size();
let resSize = if (len < size) { len } else { size };
let start = if (length > 0) 0 else size - resSize;
let start : Nat = if (length > 0) 0 else size - resSize;
subArray(array, start, resSize)
}
}

0 comments on commit 4c2a90e

Please sign in to comment.