File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
PlaygroundLogger/PlaygroundLoggerTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ extension UInt64 {
812
812
init ? ( eightBytesStorage: BytesStorage ) {
813
813
if !eightBytesStorage. has ( 8 ) { return nil }
814
814
var up_byte = UnsafeMutablePointer< UInt8> . allocate( capacity: 8 )
815
- defer { up_byte. deallocate ( capacity : 8 ) }
815
+ defer { up_byte. deallocate ( ) }
816
816
for idx in 0 ..< 8 {
817
817
up_byte [ idx] = eightBytesStorage. get ( )
818
818
}
@@ -878,7 +878,7 @@ extension Bool {
878
878
extension Float {
879
879
init ? ( storage: BytesStorage ) {
880
880
var ubPtr = UnsafeMutablePointer< UInt8> . allocate( capacity: 4 )
881
- defer { ubPtr. deallocate ( capacity : 4 ) }
881
+ defer { ubPtr. deallocate ( ) }
882
882
for idx in 0 ..< 4 {
883
883
ubPtr [ idx] = storage. get ( )
884
884
}
@@ -893,7 +893,7 @@ extension Float {
893
893
extension Double {
894
894
init ? ( storage: BytesStorage ) {
895
895
var ubPtr = UnsafeMutablePointer< UInt8> . allocate( capacity: 8 )
896
- defer { ubPtr. deallocate ( capacity : 8 ) }
896
+ defer { ubPtr. deallocate ( ) }
897
897
for idx in 0 ..< 8 {
898
898
ubPtr [ idx] = storage. get ( )
899
899
}
You can’t perform that action at this time.
0 commit comments