Skip to content

Commit f7d1544

Browse files
committed
C++: Fix Code Scanning errors.
1 parent 1dfddaf commit f7d1544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,8 +948,8 @@ private Type getTypeImpl0(Type t, int indirectionIndex) {
948948
// Such a type would create an infinite loop otherwise. For these cases we
949949
// simply don't produce a result for `getTypeImpl`.
950950
// To be on the safe side, we check whether the _unspecified_ type has
951-
// changed since this also prevents an infinite loop for occuring when
952-
// `stripped` and `t` only differ by const'ness or volatile'ness.
951+
// changed since this also prevents an infinite loop when `stripped` and
952+
// `t` only differ by const'ness or volatile'ness.
953953
stripped.getUnspecifiedType() != t.getUnspecifiedType() and
954954
result = getTypeImpl0(stripped, indirectionIndex - 1)
955955
)

0 commit comments

Comments
 (0)