Skip to content

Commit

Permalink
Update gem/gem.py
Browse files Browse the repository at this point in the history
Co-authored-by: David A. Ham <[email protected]>
  • Loading branch information
ksagiyam and dham authored Nov 19, 2024
1 parent 50e938e commit e0c8f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gem/gem.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def __new__(cls, a, b):
assert not a.shape
assert not b.shape
dtype = Node.inherit_dtype_from_children([a, b])
if dtype != uint_type:
if dtype is not uint_type:
raise ValueError(f"dtype ({dtype}) != uint_type ({uint_type})")
# Constant folding
if isinstance(b, Zero):
Expand Down

0 comments on commit e0c8f96

Please sign in to comment.