Turn on strict memory safety for the macOS app
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user