Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix perf regression in IntPtr operators on 32-bit platforms (#41254)
Switching to C# built-in uint/nuint types caused these operators to use long/ulong IntPtr/UIntPtr constructors instead of int/uint IntPtr constructors that it were used before. The fix is to avoid going through the IntPtr/UIntPtr constructors and just depend on the built-in uint/nuint implicit conversions. Fixes #41167 Co-authored-by: Jan Kotas <jkotas@microsoft.com>
- Loading branch information