Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 889 Bytes

incorrect-code-generation-when-passing-and-comparing-uint16-values.md

File metadata and controls

35 lines (22 loc) · 889 Bytes

Incorrect code generation when passing and comparing UInt16 values

Scope

Edge

Version Introduced

4.7

Version Reverted

4.7.1

Source Analyzer Status

NotPlanned

Change Description

Because of changes introduced in the .NET Framework 4.7, in some cases the code generated by the JIT compiler in applications running on the .NET Framework 4.7 incorrectly compares two T:System.UInt16 values. For more information, see Issue #11508: Silent bad codegen when passing and comparing ushort args on GitHub.com.

  • Quirked
  • Build-time break

Recommended Action

If you encounter issues in the comparison of 16-bit unsigned values in the .NET Framework 4.7, upgrade to the .NET Framework 4.7.1.

Affected APIs

    • Not detectable via API analysis

Category

JIT