Turn on strict memory safety for the macOS app

This commit is contained in:
Ian Gulliver
2026-10-17 09:57:28 -07:00
parent 3541abb1b1
commit 7452bd5936
9 changed files with 33 additions and 32 deletions
+2 -2
View File
@@ -26,9 +26,9 @@ private func bytes(_ n: Int64) -> String {
return "\(n) B"
}
if n < 1024 * 1024 {
return String(format: "%.1f KiB", Double(n) / 1024)
return "\((Double(n) / 1024).formatted(.number.precision(.fractionLength(1)).grouping(.never))) KiB"
}
return String(format: "%.1f MiB", Double(n) / 1024 / 1024)
return "\((Double(n) / 1024 / 1024).formatted(.number.precision(.fractionLength(1)).grouping(.never))) MiB"
}
private func shown(_ c: FileContent) -> Int64 {