Skip to content

Commit

Permalink
Merge pull request facebook#363 from mattjgalloway/fix_assert
Browse files Browse the repository at this point in the history
Fix assert inside block
  • Loading branch information
ocrickard committed Sep 2, 2015
2 parents 46141bb + 299cba7 commit 3902887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComponentTextKit/TextKit/CKTextKitRenderer+Positioning.mm
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ - (CGRect)frameForTextRange:(NSRange)textRange
[self.context performBlockWithLockedTextKitComponents:^(NSLayoutManager *layoutManager, NSTextStorage *textStorage, NSTextContainer *textContainer) {
// Bail on invalid range.
if (NSMaxRange(textRange) > [textStorage length]) {
CKFailAssert(@"Invalid range");
CKCFailAssert(@"Invalid range");
return;
}

Expand Down

0 comments on commit 3902887

Please sign in to comment.