Skip to content

Commit

Permalink
Add missing traversal in type inference for logical not (closes gh-789)
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 27, 2023
1 parent e855c21 commit 93fcd9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loopy/type_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ def map_comparison(self, expr):
return [NumpyType(np.dtype(np.int32))]

def map_logical_not(self, expr):
self.rec(expr.child)

return [NumpyType(np.dtype(np.int32))]

def map_logical_and(self, expr):
Expand Down

0 comments on commit 93fcd9c

Please sign in to comment.