Skip to content

Commit b76e03c

Browse files
committed
C++: Add a missing underlyingElement call
1 parent 35aa2e6 commit b76e03c

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/exprs

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class BoolConversion extends Cast {
297297
*/
298298
class VoidConversion extends Cast {
299299
VoidConversion() {
300-
conversionkinds(this, 0) and
300+
conversionkinds(underlyingElement(this), 0) and
301301
getType().getUnspecifiedType() instanceof VoidType
302302
}
303303

0 commit comments

Comments
 (0)