Skip to content

Commit 8fb8e8f

Browse files
committed
Fix a build error
1 parent 4b8841e commit 8fb8e8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/Number.Dragon4.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ private static uint Dragon4(ulong mantissa, int exponent, uint mantissaHighBitId
154154
// scaledMarginLow = 2 * 2^(-1)
155155
BigInteger.SetUInt32(out scaledMarginLow, 1);
156156
}
157+
158+
// This is unused for this path, but we need it viewed as "initialized" so the
159+
// scaledMarginHigh tracking works as expected.
160+
Unsafe.SkipInit(out optionalMarginHigh);
157161
}
158162

159163
scoped ref BigInteger scaledMarginHigh = ref (hasUnequalMargins ? ref optionalMarginHigh : ref scaledMarginLow);

0 commit comments

Comments
 (0)