knomi / LevelDB-Cocoa

Simple but versatile Objective-C & Swift wrapper around the LevelDB key-value storage
https://github.com/google/leveldb
1 stars 1 forks source link

Can has Swift 3.2 support? #5

Open repomies opened 7 years ago

repomies commented 7 years ago
private func offsetSign<T : UnsignedInteger>(_ value: T) -> T {
    return value &+ ~(~0 / 2) // 0b10000...000
}

Binary operator '&+' cannot be applied to operands of type 'T' and 'Int' 🤢

pyrtsa commented 7 years ago

Ha! Should be easy with the new integer protocols in Swift. Let me see.

And sorry for the break!

repomies commented 6 years ago

This stuff haunting me again when I should make some minor text fixes :)

pyrtsa commented 6 years ago

See #6.