mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
A negative constant operand is usually the two's-complement rendering of a bit mask or a high unsigned value (an enum member, a sentinel); the IL view now appends the hexadecimal form as a comment, e.g. 'ldc.i4 -501 // 0xfffffe0b' (#1142). The short forms stay bare: their operand range is readable as-is. The disassembler round-trip comparer strips comments, so the new NegativeConstants case pins the rendering with explicit content asserts. Assisted-by: Claude:claude-fable-5:Claude Code