2
0
Эх сурвалжийг харах

alignof -> MemoryLayout<T>.alignment

Marcin Krzyżanowski 9 жил өмнө
parent
commit
349486b595

+ 1 - 1
CryptoSwiftTests/HashTests.swift

@@ -59,7 +59,7 @@ final class CryptoSwiftTests: XCTestCase {
             self.stopMeasuring()
             md.deallocate(capacity: Int(CC_MD5_DIGEST_LENGTH))
             md.deinitialize()
-            buf.deallocate(bytes: 1024 * 1024, alignedTo: alignof(UInt8.self))
+            buf.deallocate(bytes: 1024 * 1024, alignedTo: MemoryLayout<UInt8>.alignment)
         })
     }