Commit c30e3c9
[Clang-tidy] fix warning for Tscal used as loop counter (Shamrock-code#1424)
warning: Variable 'x' with floating point type 'Tscal' should not be
used as a loop counter [clang-analyzer-security.FloatLoopCounter]
85 | for (Tscal x = 0; x < Ker::Rkern; x += step) {...};
Replaced the foor loop by a while loop.
Co-authored-by: David--Cléris Timothée <timothee.davidcleris@proton.me>1 parent 72c6793 commit c30e3c9
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
0 commit comments