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

Skip to content

Commit f9b1c5e

Browse files
committed
Python: Fix bug pointed out by reviewer
1 parent bfd9c08 commit f9b1c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ predicate comprehensionReadStep(CfgNode nodeFrom, Content c, EssaNode nodeTo) {
425425
// c denotes element of list or set
426426
exists(For f, Comp comp |
427427
f = getCompFor(comp) and
428-
nodeFrom.getNode().(SequenceNode).getNode() = getCompIter(comp) and
428+
nodeFrom.getNode().getNode() = getCompIter(comp) and
429429
nodeTo.getVar().getDefinition().(AssignmentDefinition).getDefiningNode().getNode() =
430430
f.getTarget() and
431431
(

0 commit comments

Comments
 (0)