Commit bda43459 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Merge branch 'bug-is-negative' into 'master'

Bugfix: TypedSymbol.is_negative should not be implemented in terms of super().is_positive

See merge request pycodegen/pystencils!31
parents db2e9f13 f11bbbef
......@@ -141,7 +141,7 @@ class TypedSymbol(sp.Symbol):
if np.issubdtype(self.dtype.numpy_dtype, np.unsignedinteger):
return False
return super().is_positive
return super().is_negative
def is_nonnegative(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment