Skip to content

Commit

Permalink
Merge branch 'patch-array-call' into lassen-bfloat
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Mar 21, 2019
2 parents 18c3f29 + 59576a0 commit 4ca2701
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions magma/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def flip(cls):
def __call__(cls, *args, **kwargs):
result = super().__call__(*args, **kwargs)
if len(args) == 1 and isinstance(args[0], Array) and not \
(issubclass(cls.T, Array) and cls.N == 1) and \
args[0].N == cls.N and args[0].T == cls.T:
(issubclass(cls.T, Array) and cls.N == 1):
arg = args[0]
if len(arg) < len(result):
from .conversions import zext
Expand Down

0 comments on commit 4ca2701

Please sign in to comment.