From fb42d22b9916673f63da33e82502b839e1364084 Mon Sep 17 00:00:00 2001 From: Rajat Dua Date: Tue, 16 May 2017 12:58:52 -0700 Subject: [PATCH] Fix linux builds in 2.0 --- lib/Runtime/Library/JavascriptArray.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Runtime/Library/JavascriptArray.cpp b/lib/Runtime/Library/JavascriptArray.cpp index 0cc2532db39..66d8d027f8d 100644 --- a/lib/Runtime/Library/JavascriptArray.cpp +++ b/lib/Runtime/Library/JavascriptArray.cpp @@ -5253,7 +5253,8 @@ namespace Js if (hasInlineSegment) { - SparseArraySegment* headSeg = (SparseArraySegment*)array->head; + SparseArraySegmentBase* headSegBase = array->head; + SparseArraySegment* headSeg = (SparseArraySegment*)headSegBase; AnalysisAssert(headSeg); SparseArraySegment* newHeadSeg = SparseArraySegment::template AllocateSegmentImpl(recycler,