Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strongoier committed Nov 17, 2021
1 parent 97dd803 commit e6594bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/lang/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def filled_with_scalar(self, value):
entries = {}
for k, dtype in self.members.items():
if isinstance(dtype, CompoundType):
entries[k] = dtype.scalar_filled(value)
entries[k] = dtype.filled_with_scalar(value)
else:
entries[k] = value
return Struct(entries)
Expand Down

0 comments on commit e6594bc

Please sign in to comment.