To perform a reference cast, use the casting operators (as, as!, or as?) or the unsafeDowncast(_:to:) function. Do not use unsafeBitCast(_:to:) with class or pointer types; doing so may introduce undefined behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/JohnEstropia/CoreStore/pull/156
**Author:** [@ruslanskorb](https://github.com/ruslanskorb)
**Created:** 3/24/2017
**Status:** ❌ Closed
**Base:** `develop` ← **Head:** `get-rid-of-unsafeBitCast`
---
### 📝 Commits (1)
- [`6ed0275`](https://github.com/JohnEstropia/CoreStore/commit/6ed0275f5d3fbfcb666f97d6717e5db477ad6b51) Get rid of `unsafeBitCast(_:to:)`.
### 📊 Changes
**4 files changed** (+4 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `Sources/Internal/CoreStoreFetchRequest+CoreStore.swift` (+1 -1)
📝 `Sources/Internal/CoreStoreFetchedResultsController.swift` (+1 -1)
📝 `Sources/Observing/ListMonitor.swift` (+1 -1)
📝 `Sources/Observing/ObjectMonitor.swift` (+1 -1)
</details>
### 📄 Description
To perform a reference cast, use the casting operators (`as`, `as!`, or `as?`) or the `unsafeDowncast(_:to:)` function. Do not use `unsafeBitCast(_:to:)` with class or pointer types; doing so may introduce undefined behavior.
https://developer.apple.com/reference/swift/1641250-unsafebitcast
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/JohnEstropia/CoreStore/pull/156
Author: @ruslanskorb
Created: 3/24/2017
Status: ❌ Closed
Base:
develop← Head:get-rid-of-unsafeBitCast📝 Commits (1)
6ed0275Get rid ofunsafeBitCast(_:to:).📊 Changes
4 files changed (+4 additions, -4 deletions)
View changed files
📝
Sources/Internal/CoreStoreFetchRequest+CoreStore.swift(+1 -1)📝
Sources/Internal/CoreStoreFetchedResultsController.swift(+1 -1)📝
Sources/Observing/ListMonitor.swift(+1 -1)📝
Sources/Observing/ObjectMonitor.swift(+1 -1)📄 Description
To perform a reference cast, use the casting operators (
as,as!, oras?) or theunsafeDowncast(_:to:)function. Do not useunsafeBitCast(_:to:)with class or pointer types; doing so may introduce undefined behavior.https://developer.apple.com/reference/swift/1641250-unsafebitcast
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.