mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 00:36:10 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}()
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import Foundation
|
||||
@inline(__always)
|
||||
public func padding(
|
||||
bufSize: UInt,
|
||||
elementSize: UInt) -> UInt
|
||||
{
|
||||
elementSize: UInt
|
||||
) -> UInt {
|
||||
((~bufSize) &+ 1) & (elementSize &- 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user