github / codeql-coding-standards

This repository contains CodeQL queries and libraries which support various Coding Standards.
MIT License
121 stars 55 forks source link

`RULE-12-2`: Incorrect type considered for integer constants with suffixes. #683

Closed lcartey closed 2 weeks ago

lcartey commented 2 weeks ago

Affected rules

Description

Integer constants with a suffix which changes the size of the integer constant type are not considered appropriately when determining the essential type of the constant.

Example

1U << 24; // COMPLIANT