Skip to content

Commit 4fbc6de

Browse files
committed
Fix warnings from std::accumulate in xbuilder
1 parent dd857e5 commit 4fbc6de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/xtensor/generators/xbuilder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ namespace xt
520520
const size_t stride = std::accumulate(
521521
shape.begin() + i + 1,
522522
shape.end(),
523-
1,
523+
size_t(1),
524524
std::multiplies<size_t>()
525525
);
526526
if (i == axis)

0 commit comments

Comments
 (0)