Skip to content

Commit ddb84d7

Browse files
committed
[bugfix] 3D cartesian_product specialization
1 parent 7479dd4 commit ddb84d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cartesian_product.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ namespace tl {
14271427
void advance(difference_type n) {
14281428
auto idx = linear() + n;
14291429
x_i = idx / (nz * ny) + x_0;
1430-
y_i = (idx / ny) % nz + y_0;
1430+
y_i = (idx / nz) % ny + y_0;
14311431
z_i = idx % nz + z_0;
14321432
}
14331433
void next() {

0 commit comments

Comments
 (0)