File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
-- ----------------------------------------------------------------------------
2
2
-- Language Server Protocol --
3
3
-- --
4
- -- Copyright (C) 2021-2022 , AdaCore --
4
+ -- Copyright (C) 2021-2023 , AdaCore --
5
5
-- --
6
6
-- This is free software; you can redistribute it and/or modify it under --
7
7
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -38,8 +38,8 @@ package body LSP.Search.Approximate is
38
38
-- errors.
39
39
40
40
Mask : Character_Masks;
41
- Min : Virtual_Character := Virtual_Character'Last ;
42
- Max : Virtual_Character := Virtual_Character'First ;
41
+ Min : Virtual_Character := Virtual_Character'Last_Valid ;
42
+ Max : Virtual_Character := Virtual_Character'First_Valid ;
43
43
C : Virtual_Character;
44
44
begin
45
45
declare
Original file line number Diff line number Diff line change 1
1
-- ----------------------------------------------------------------------------
2
2
-- Language Server Protocol --
3
3
-- --
4
- -- Copyright (C) 2021, AdaCore --
4
+ -- Copyright (C) 2021-2023 , AdaCore --
5
5
-- --
6
6
-- This is free software; you can redistribute it and/or modify it under --
7
7
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -32,7 +32,8 @@ private
32
32
subtype Mask is Interfaces.Unsigned_64;
33
33
-- We only consider the 1..Pattern'Length
34
34
35
- type Character_Mask_Array is array (Virtual_Character range <>) of Mask;
35
+ type Character_Mask_Array is
36
+ array (Virtual_Character'Base range <>) of Mask;
36
37
type Character_Masks is access all Character_Mask_Array;
37
38
38
39
Approximate_Max_Errors : constant := 2 ;
You can’t perform that action at this time.
0 commit comments