Fix compilation failure in Utf16Utility
authorLevi Broderick <GrabYourPitchforks@users.noreply.github.com>
Thu, 11 Apr 2019 20:19:21 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2019 20:19:21 +0000 (13:19 -0700)
src/System.Private.CoreLib/shared/System/Text/Unicode/Utf16Utility.Validation.cs

index 4bc2c1c..40e818e 100644 (file)
@@ -226,7 +226,7 @@ namespace System.Text.Unicode
                             else
                             {
                                 // Take the hit of the 64-bit extension now.
-                                tempUtf8CodeUnitCountAdjustment -= 2 * surrogatePairsCountNuint;
+                                tempUtf8CodeUnitCountAdjustment -= 2 * (uint)surrogatePairsCountNuint;
                             }
                         }