Skip to content

Commit 4045fb2

Browse files
authored
Update xbuilder.hpp
1 parent 6ff2674 commit 4045fb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/xtensor/xbuilder.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,12 +565,12 @@ namespace xt
565565
{
566566
size_t offset = 0;
567567
const size_t end = arr.dimension();
568-
bool after_axis = false;
568+
size_t after_axis = 0;
569569
for (size_t i = 0; i < end; i++)
570570
{
571571
if (i == axis)
572572
{
573-
after_axis = true;
573+
after_axis = 1;
574574
}
575575
const auto& shape = arr.shape();
576576
const size_t stride = std::accumulate(

0 commit comments

Comments
 (0)