mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
C++: Tweak a comment in simple range analysis
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f5ddb1d51d
commit
7c0054bf25
@@ -335,7 +335,7 @@ int test_mult05(int a, int b) {
|
||||
|
||||
// Tests for shift operators.
|
||||
unsigned long long test_shift(unsigned long long a) {
|
||||
// `odd` is the largest odd integer that can be represented by a double.
|
||||
// `odd` is the largest odd integer that can be precisely represented by a double.
|
||||
unsigned long long odd = 9007199254740992 - 1; // 2^53 - 1
|
||||
// Shifting right by by 1 give an upper bound that is half of `odd` rounded down.
|
||||
unsigned long long shifted = odd >> 1;
|
||||
|
||||
Reference in New Issue
Block a user