Skip to content

Commit

Permalink
Fixed an issue causing infinite recursion in the Swift runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Aug 9, 2017
1 parent bb31e7f commit 4bd07f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactiveCocoa/ObjC+RuntimeSubclassing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private func subclassName(of class: AnyClass) -> String {
/// - class: The class to swizzle.
/// - perceivedClass: The class to be reported by the methods.
private func replaceGetClass(in class: AnyClass, decoy perceivedClass: AnyClass) {
let getClass: @convention(block) (Any) -> AnyClass = { _ in
let getClass: @convention(block) (UnsafeRawPointer?) -> AnyClass = { _ in
return perceivedClass
}

Expand Down

0 comments on commit 4bd07f4

Please sign in to comment.