aboutsummaryrefslogtreecommitdiffstats
path: root/src/files_map.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/files_map.adb')
-rw-r--r--src/files_map.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files_map.adb b/src/files_map.adb
index 1f316b879..24917592c 100644
--- a/src/files_map.adb
+++ b/src/files_map.adb
@@ -909,7 +909,7 @@ package body Files_Map is
pragma Assert (File <= Source_Files.Last);
F : Source_File_Record renames Source_Files.Table (File);
begin
- return Source_Ptr (F.Last_Location - F.First_Location - 1);
+ return Source_Ptr (F.Last_Location - F.First_Location + 1);
end Get_Buffer_Length;
-- Return the name of the file.