mirror of
https://github.com/github/codeql.git
synced 2026-03-28 18:28:17 +01:00
4 lines
123 B
C++
4 lines
123 B
C++
bool checkOverflow(unsigned short x, unsigned short y) {
|
|
return ((unsigned short)(x + y) < x); // GOOD: explicit cast
|
|
}
|