You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is incorrect as the bitwise representation of Bool is an implementation detail and thus subject to change at will between language versions, breaking your persisted database.
The text was updated successfully, but these errors were encountered:
regexident
changed the title
SwiftLMDB does not handle binary representation of Bool properly
Implementation of DataConvertible for Bool is incorrect
Sep 9, 2017
The way
DataConvertible
is implemented forBool
in SwiftLMDB right now is this:which then effectively ends up implementing this for each:
This is incorrect as the bitwise representation of
Bool
is an implementation detail and thus subject to change at will between language versions, breaking your persisted database.What you should do instead is this:
The text was updated successfully, but these errors were encountered: