Commit c01d336
committed
fix(detectors/goto): missing PosEx import + CharInSet for WideChar set
Two compiler issues hit on the user's Delphi 12 build:
E2003 Undeklarierter Bezeichner: 'PosEx' (line 81)
W1050 WideChar in Set-Ausdruecken auf ByteChar verkuerzt (line 147)
PosEx lives in System.StrUtils, which we use in uWithStatement /
uReversedForRange but I forgot to add to this new unit's uses clause.
The 'c in ['g','G']' check truncates the WideChar 'c' to ByteChar.
Standard Unicode-Delphi fix is CharInSet from System.SysUtils (already
imported). uReversedForRange and uWithStatement use the same pattern
elsewhere.
No behavior change otherwise - the detector logic is unchanged.1 parent 86db37b commit c01d336
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
0 commit comments