mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[PR #156] [CLOSED] Get rid of unsafeBitCast(_:to:).
#468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.