ext/congruence_solver/congruences.c in congruence_solver-0.5.1 vs ext/congruence_solver/congruences.c in congruence_solver-0.5.2

- old
+ new

@@ -54,9 +54,10 @@ long x; #pragma omp parallel for for(x = 0; x < primeMod; x++){ if(mod_eval_polynomial(degree, adjustedCoeffs, primeMod, x) == 0){ + #pragma omp critical solutions[numberOfSolutions++] = x; } } *solutionList = numberOfSolutions;