Skip to content

Commit 4536d75

Browse files
authored
Merge pull request #93 from ian-semmle/underlyingElement
C++: Add a missing underlyingElement call
2 parents d0497a5 + b76e03c commit 4536d75

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)