Skip to content

Commit d355098

Browse files
committed
Need to set the type of the constant array
1 parent 50058a3 commit d355098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def __setitem__(self, key, val):
441441

442442
if (is_number(val)):
443443
tdims = get_assign_dims(key, self.dims())
444-
other_arr = constant_array(val, tdims[0], tdims[1], tdims[2], tdims[3])
444+
other_arr = constant_array(val, tdims[0], tdims[1], tdims[2], tdims[3], self.type())
445445
else:
446446
other_arr = val.arr
447447

0 commit comments

Comments
 (0)