Skip to content

Commit 45d55a6

Browse files
author
Thomas Moore (CHAKRA)
committed
Fix xplat build error
1 parent d274208 commit 45d55a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Runtime/Library/JavascriptArray.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11811,10 +11811,10 @@ namespace Js
1181111811
if (src->next != nullptr)
1181211812
{
1181311813
// Allocate a new segment in the destination and copy from src
11814-
src = static_cast<SparseArraySegment<T>*>(src->next);
11814+
src = SparseArraySegment<T>::From(src->next);
1181511815

1181611816
dst->next = dst->AllocateSegment(GetRecycler(), src->left, src->length, src->size, src->next);
11817-
dst = static_cast<SparseArraySegment<T>*>(dst->next);
11817+
dst = SparseArraySegment<T>::From(dst->next);
1181811818

1181911819
CopyArray(dst->elements, dst->size, src->elements, src->size);
1182011820
}

0 commit comments

Comments
 (0)