Commit 1ca0b97c authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Remove opt-ed out assertion

parent 00207401
...@@ -387,8 +387,6 @@ auto advance_indices(const Shape& shape, Indices& indices) -> std::enable_if_t< ...@@ -387,8 +387,6 @@ auto advance_indices(const Shape& shape, Indices& indices) -> std::enable_if_t<
auto idx = rbegin(indices); auto idx = rbegin(indices);
for(; carry && dim != rend(shape) && idx != rend(indices); ++dim, ++idx) for(; carry && dim != rend(shape) && idx != rend(indices); ++dim, ++idx)
{ {
assert(*idx < *dim);
*idx = (*idx + carry); *idx = (*idx + carry);
carry = ((*idx == *dim) ? (*idx = 0, true) : false); carry = ((*idx == *dim) ? (*idx = 0, true) : false);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment