Integer Data Type
Identifies obsolete 16-bit integer variables.
Reasoning
Modern processors are optimized for processing 32-bit integers; internally, a 16-bit integer is still stored as a 32-bit value. Unless code is interacting with APIs that require a 16-bit integer, a Long (32-bit integer) should be used instead.
Default severity
Hint
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.IntegerDataTypeInspection.cs (Prerelease-v2.5.9.6289)