From 341ec5e7714320081d34a397eb8a52be38238d39 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Wed, 1 Mar 2017 19:56:13 +0900 Subject: [PATCH] reverted unsafeDowncast usage to unsafeBitCast (It worked differently) --- Sources/Observing/ListMonitor.swift | 2 +- Sources/Observing/ObjectMonitor.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Observing/ListMonitor.swift b/Sources/Observing/ListMonitor.swift index cf69710..ad96481 100644 --- a/Sources/Observing/ListMonitor.swift +++ b/Sources/Observing/ListMonitor.swift @@ -677,7 +677,7 @@ public final class ListMonitor: Hashable { internal func downcast() -> ListMonitor { - return unsafeDowncast(self, to: ListMonitor.self) + return unsafeBitCast(self, to: ListMonitor.self) } internal func registerChangeNotification(_ notificationKey: UnsafeRawPointer, name: Notification.Name, toObserver observer: AnyObject, callback: @escaping (_ monitor: ListMonitor) -> Void) { diff --git a/Sources/Observing/ObjectMonitor.swift b/Sources/Observing/ObjectMonitor.swift index bc9add6..9956a75 100644 --- a/Sources/Observing/ObjectMonitor.swift +++ b/Sources/Observing/ObjectMonitor.swift @@ -212,7 +212,7 @@ public final class ObjectMonitor: Equatable { internal func downcast() -> ObjectMonitor { - return unsafeDowncast(self, to: ObjectMonitor.self) + return unsafeBitCast(self, to: ObjectMonitor.self) } deinit {