Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecations #435

Open
aleene opened this issue Jun 28, 2018 · 0 comments
Open

Deprecations #435

aleene opened this issue Jun 28, 2018 · 0 comments

Comments

@aleene
Copy link

aleene commented Jun 28, 2018

I get warnings in CryptoSwiftMD5:

'deinitialize()' is deprecated: the default argument to deinitialize(count:) has been removed, please specify the count explicitly

and

'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead

I guess:

    valuePointer.deinitialize(count:totalBytes)
    valuePointer.deallocate()

solves this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant