Commit faf542a
committed
Avoid undefined behaviour for geometries as a1b1 [defect]
Reported by Rasmus A. using CodeSonar, appreciated!
This not only fixes potential undefined behaviour, but the old code
worked by accident anyway for the other geometries (wrapping from
rank8 to rank1 didn't cause any harm but was unintended...)1 parent e9b0977 commit faf542a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments