bulk code format fix (#8707)

This commit is contained in:
Derek Bailey
2025-09-23 21:50:27 -07:00
committed by GitHub
parent 0e047869da
commit caf3b494db
559 changed files with 38871 additions and 31276 deletions

View File

@@ -28,9 +28,9 @@ extension Int {
var n = UInt32(self)
#if arch(arm) || arch(i386)
let max = UInt32(Int.max)
let max = UInt32(Int.max)
#else
let max = UInt32.max
let max = UInt32.max
#endif
n -= 1

View File

@@ -18,7 +18,7 @@ import Foundation
/// A boolean to see if the system is littleEndian
public let isLitteEndian: Bool = {
let number: UInt32 = 0x12345678
let number: UInt32 = 0x1234_5678
return number == number.littleEndian
}()

View File

@@ -23,7 +23,7 @@ import Foundation
@inline(__always)
public func padding(
bufSize: UInt,
elementSize: UInt) -> UInt
{
elementSize: UInt
) -> UInt {
((~bufSize) &+ 1) & (elementSize &- 1)
}