Don't use deadbeef for dead pointers. (#1604)
Motivation: It turns out using this overflows Int on "Any iOS Device" Modifications: Switch the first d to a 7. Result: Code will compile on "Any iOS Device".
This commit is contained in:
parent
3cfb3f1d6e
commit
496d697df7
|
@ -46,7 +46,7 @@ struct UnsafeControlMessageStorage: Collection {
|
|||
|
||||
mutating func deallocate() {
|
||||
self.buffer.deallocate()
|
||||
self.buffer = UnsafeMutableRawBufferPointer(start: UnsafeMutableRawPointer(bitPattern: 0xdeadbeef), count: 0)
|
||||
self.buffer = UnsafeMutableRawBufferPointer(start: UnsafeMutableRawPointer(bitPattern: 0x7eadbeef), count: 0)
|
||||
}
|
||||
|
||||
/// Get the part of the buffer for use with a message.
|
||||
|
|
Loading…
Reference in New Issue