Inspectopedia
 
2024.3

Comparison of 'short' and 'char' values

Warning
New
Last modified: 03 December 2024

Reports equality comparisons between short and char values.

Such comparisons may cause subtle bugs because while both values are 2-byte long, short values are signed, and char values are unsigned.

Example: