mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
When the branches of a conditional have different types, its type falls back to the IL stack slot type, which is (U)IntPtr. IntroduceNativeIntTypeOnLocals only retypes variables, so with native integers enabled the branches got cast to IntPtr. Map (U)IntPtr to n(u)int the same way boxing does; pointer types are unaffected.