diff --git a/loopy/codegen/expression.py b/loopy/codegen/expression.py index 87ebf2384143d12d759fc09e348019465d185dda..1963c299571206a20ea0c48ab49b2923968e31bb 100644 --- a/loopy/codegen/expression.py +++ b/loopy/codegen/expression.py @@ -84,7 +84,7 @@ class TypeInferenceMapper(CombineMapper): # assume the non-native type takes over pass else: - if not result is other: + if result is not other: raise TypeInferenceFailure( "nothing known about result of operation on " "'%s' and '%s'" % (result, other))