Index: openmp/runtime/src/kmp_dispatch.cpp =================================================================== --- openmp/runtime/src/kmp_dispatch.cpp +++ openmp/runtime/src/kmp_dispatch.cpp @@ -1450,7 +1450,7 @@ } else { vnew.p.ub -= 1; // steal 1 chunk of 1..7 remaining } - KMP_DEBUG_ASSERT((vnew.p.ub - 1) * (UT)chunk <= trip); + KMP_DEBUG_ASSERT(vnew.p.ub * (UT)chunk <= trip); if (KMP_COMPARE_AND_STORE_REL64( (volatile kmp_int64 *)&v->u.p.count, *VOLATILE_CAST(kmp_int64 *) & vold.b,