Skip to content

Commit

Permalink
BUGFIX in assign
Browse files Browse the repository at this point in the history
  • Loading branch information
shehzan10 committed Sep 14, 2015
1 parent 92e08e9 commit 4698f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/c/assign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ af_err af_assign_gen(af_array *out,
ARG_ASSERT(2, (ndims == 1) || (ndims == (dim_t)lInfo.ndims()));

if (ndims == 1 && ndims != (dim_t)lInfo.ndims()) {
af_array tmp_in, tmp_out;
af_array tmp_in = 0, tmp_out = 0;
AF_CHECK(af_flat(&tmp_in, lhs));
AF_CHECK(af_assign_gen(&tmp_out, tmp_in, ndims, indexs, rhs_));
AF_CHECK(af_moddims(out, tmp_out, lInfo.ndims(), lInfo.dims().get()));
Expand Down

0 comments on commit 4698f12

Please sign in to comment.