@@ -316,10 +316,10 @@ public struct UnsafePointer<Pointee>: _Pointer {
316
316
_debugPrecondition (
317
317
Int ( bitPattern: . init( _rawValue) ) & ( MemoryLayout < T > . alignment- 1 ) == 0 &&
318
318
( count == 1 ||
319
- MemoryLayout < Pointee > . stride > MemoryLayout< T> . stride
320
- ? MemoryLayout< Pointee> . stride % MemoryLayout < T > . stride == 0
321
- : MemoryLayout < T > . stride % MemoryLayout < Pointee > . stride == 0 )
322
- )
319
+ ( MemoryLayout < Pointee > . stride > MemoryLayout< T> . stride
320
+ ? MemoryLayout< Pointee> . stride % MemoryLayout < T > . stride == 0
321
+ : MemoryLayout < T > . stride % MemoryLayout < Pointee > . stride == 0
322
+ ) ) )
323
323
let binding = Builtin . bindMemory ( _rawValue, count. _builtinWordValue, T . self)
324
324
defer { Builtin . rebindMemory ( _rawValue, binding) }
325
325
return try body ( . init( _rawValue) )
@@ -1003,10 +1003,10 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
1003
1003
_debugPrecondition (
1004
1004
Int ( bitPattern: . init( _rawValue) ) & ( MemoryLayout < T > . alignment- 1 ) == 0 &&
1005
1005
( count == 1 ||
1006
- MemoryLayout < Pointee > . stride > MemoryLayout< T> . stride
1007
- ? MemoryLayout< Pointee> . stride % MemoryLayout < T > . stride == 0
1008
- : MemoryLayout < T > . stride % MemoryLayout < Pointee > . stride == 0 )
1009
- )
1006
+ ( MemoryLayout < Pointee > . stride > MemoryLayout< T> . stride
1007
+ ? MemoryLayout< Pointee> . stride % MemoryLayout < T > . stride == 0
1008
+ : MemoryLayout < T > . stride % MemoryLayout < Pointee > . stride == 0
1009
+ ) ) )
1010
1010
let binding = Builtin . bindMemory ( _rawValue, count. _builtinWordValue, T . self)
1011
1011
defer { Builtin . rebindMemory ( _rawValue, binding) }
1012
1012
return try body ( . init( _rawValue) )
0 commit comments