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

Skip to content

Commit f79c140

Browse files
committed
C++: Cosmetic: use [0, 1] instead of [0 .. 1]
1 parent fd0937e commit f79c140

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cpp/ql/src/semmle/code/cpp/exprs

cpp/ql/src/semmle/code/cpp/exprs/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class BinaryOperation extends Operation, @bin_op_expr {
544544
* binary operation.
545545
*/
546546
predicate hasOperands(Expr e1, Expr e2) {
547-
exists(int i | i in [0 .. 1] |
547+
exists(int i | i in [0, 1] |
548548
this.hasChild(e1, i) and
549549
this.hasChild(e2, 1 - i)
550550
)

0 commit comments

Comments
 (0)