Skip to content

Commit 91f64b3

Browse files
committed
Started using
1 parent c8b8cba commit 91f64b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/rudiments-core.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ extension [ValueType](iterable: Iterable[ValueType])
213213
recur(0, iterable, 0, 0, 0)
214214

215215
extension [ElemType](value: IArray[ElemType])
216-
inline def mutable(using Unsafe): Array[ElemType] = (value.asMatchable: @unchecked) match
216+
inline def mutable(using Unsafe): Array[ElemType] = value.asMatchable.runtimeChecked match
217217
case array: Array[ElemType] => array
218218

219219
extension [ElemType](array: Array[ElemType])
220-
def immutable(using Unsafe): IArray[ElemType] = (array: @unchecked) match
220+
def immutable(using Unsafe): IArray[ElemType] = array.runtimeChecked match
221221
case array: IArray[ElemType] => array
222222

223223
def snapshot(using ClassTag[ElemType]): IArray[ElemType] =

0 commit comments

Comments
 (0)