commit | f2551feb7ce133eefc4e657bab1d93a538ffd22f | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.huber@secunet.com> | Tue Feb 13 23:38:10 2024 +0100 |
committer | Nico Huber <nico.huber@secunet.com> | Tue Feb 13 23:38:24 2024 +0100 |
tree | 4d75124cd722a64ee77e60203726e4c38c874414 | |
parent | 523c37219dec4afe34a5a43361b6ac2ca0e08504 [diff] |
fs: Use type conversions compatible with 32-bit builds
diff --git a/src/filo-fs.adb b/src/filo-fs.adb index 69ed2ad..91f86f0 100644 --- a/src/filo-fs.adb +++ b/src/filo-fs.adb
@@ -20,8 +20,8 @@ function Part_Len return Partition_Length is - (Partition_Length (unsigned_long'Min ( - C_Part_Length, unsigned_long (Partition_Length'Last)))); + (Partition_Length (Unsigned_64'Min ( + Unsigned_64 (C_Part_Length), Unsigned_64 (Partition_Length'Last)))); function File_Max return File_Length is begin