@@ -969,19 +969,19 @@ template <typename Ty> class StaticLoopChunker {
969969 IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters, \
970970 TY num_threads, TY block_chunk, TY thread_chunk) { \
971971 ompx::StaticLoopChunker<TY>::DistributeFor ( \
972- loc, fn, arg, num_iters + 1 , num_threads, block_chunk, thread_chunk); \
972+ loc, fn, arg, num_iters, num_threads, block_chunk, thread_chunk); \
973973 } \
974974 [[gnu::flatten, clang::always_inline]] void \
975975 __kmpc_distribute_static_loop##BW(IdentTy *loc, void (*fn)(TY, void *), \
976976 void *arg, TY num_iters, \
977977 TY block_chunk) { \
978- ompx::StaticLoopChunker<TY>::Distribute (loc, fn, arg, num_iters + 1 , \
978+ ompx::StaticLoopChunker<TY>::Distribute (loc, fn, arg, num_iters, \
979979 block_chunk); \
980980 } \
981981 [[gnu::flatten, clang::always_inline]] void __kmpc_for_static_loop##BW( \
982982 IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters, \
983983 TY num_threads, TY thread_chunk) { \
984- ompx::StaticLoopChunker<TY>::For (loc, fn, arg, num_iters + 1 , num_threads, \
984+ ompx::StaticLoopChunker<TY>::For (loc, fn, arg, num_iters, num_threads, \
985985 thread_chunk); \
986986 }
987987
0 commit comments