From: Levi Broderick Date: Thu, 11 Apr 2019 20:19:21 +0000 (-0700) Subject: Fix compilation failure in Utf16Utility X-Git-Tag: submit/tizen/20210909.063632~11030^2~1880^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbc33b43dadd7ce356340ca2542a760e091a5d68;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix compilation failure in Utf16Utility Commit migrated from https://github.com/dotnet/coreclr/commit/7558272c50a01bb043569c312172a2be019fad61 --- diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs index 4bc2c1c..40e818e 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs @@ -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; } }