Commit 6a1e86e
committed
[Minuit2] Use signed integer as index variable in OpenMP 'for' statement
Compiling Minuit2 with `minuit2_omp=ON` when using MVSC raises `error
C3016: 'i': index variable in OpenMP 'for' statement must have signed
integral type`
Source of the error is line 102 in
`math/minuit2/src/Numerical2PGradientCalculator.cxx` where (in commit
95035e2) the for-loop variable type was changed from integer to unsigned
integer. While this is no problem for GCC, MVSC apparently strictly
forbids this.
Closes #20586.1 parent 8a4a8cb commit 6a1e86e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments