Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16411d1

Browse files
committed
[CPP-434] Remove references to underflow and subtraction.
1 parent 8c6caf2 commit 16411d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/src/Likely Bugs/Arithmetic/SignedOverflowCheck.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ where
2121
ro.getAnOperand() = va2 and
2222
va1.getTarget() = va2.getTarget() and
2323
/*
24-
* if the addition/subtraction (`bao`) has been promoted to a signed type,
24+
* if the addition (`bao`) has been promoted to a signed type,
2525
* then the other operand (`va2`) must have been likewise promoted and so
2626
* have a signed comparison
2727
*/
2828

2929
bao.getFullyConverted().getType().(IntegralType).isSigned()
30-
select ro, "Testing for signed overflow/underflow may produce undefined results."
30+
select ro, "Testing for signed overflow may produce undefined results."

0 commit comments

Comments
 (0)