Skip to content

Commit b6bf1f6

Browse files
committed
Fix for_index index error
1 parent 4289284 commit b6bf1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/matazure/for_index.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ MATAZURE_GENERAL inline void for_index(sequence_policy, pointi<4> origin, pointi
107107
for (int_t i = origin[0]; i < end[0]; ++i) {
108108
for (int_t j = origin[1]; j < end[1]; ++j) {
109109
for (int_t k = origin[2]; k < end[2]; ++k) {
110-
for (int_t l = origin[3]; k < end[3]; ++k) {
110+
for (int_t l = origin[3]; l < end[3]; ++l) {
111111
fun(pointi<4>{{i, j, k, l}});
112112
}
113113
}

0 commit comments

Comments
 (0)