fix optimization issues in release build

This commit is contained in:
John Estropia
2019-08-27 14:21:33 +09:00
parent 02d5bf85ae
commit 058cc1915b

View File

@@ -462,8 +462,8 @@ extension AttributeProtocol {
let notification = CoreStoreObjectValueDiff<V>( let notification = CoreStoreObjectValueDiff<V>(
kind: kind, kind: kind,
newNativeValue: newValue as! V.QueryableNativeType?, newNativeValue: newValue as? V.QueryableNativeType,
oldNativeValue: oldValue as! V.QueryableNativeType?, oldNativeValue: oldValue as? V.QueryableNativeType,
isPrior: isPrior isPrior: isPrior
) )
changeHandler( changeHandler(
@@ -485,8 +485,8 @@ extension AttributeProtocol {
let notification = CoreStoreObjectTransformableDiff<V>( let notification = CoreStoreObjectTransformableDiff<V>(
kind: kind, kind: kind,
newValue: newValue as! V?, newValue: newValue as? V,
oldValue: oldValue as! V?, oldValue: oldValue as? V,
isPrior: isPrior isPrior: isPrior
) )
changeHandler( changeHandler(