Skip to content
Permalink
Browse files

swift 4 fix

  • Loading branch information...
mishagray committed Jan 29, 2018
1 parent 25de046 commit d199f0d9a3dac3a2f38841649a95699ba874d982
Showing with 5 additions and 2 deletions.
  1. +5 −2 FutureKit/Utils/ExtensionVars.swift
@@ -83,8 +83,11 @@ class UnSafeMutableContainer<T> {
unsafe_pointer.initialize(to: initialValue)
}
deinit {
unsafe_pointer.deinitialize(count: 1)
unsafe_pointer.deallocate()
#if swift(>=4.1)
unsafe_pointer.deallocate()
#else
unsafe_pointer.deallocate(capacity: 1)
#endif
}
}

0 comments on commit d199f0d

Please sign in to comment.
You can’t perform that action at this time.