Skip to content

Commit

Permalink
Fixing a debug device build warning for unsafe usage of UInteger as a…
Browse files Browse the repository at this point in the history
… format argument.
  • Loading branch information
jmkk committed Oct 5, 2016
1 parent 2d046b5 commit 6dee8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hakawai/Core/HKWTextView+Plugins.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (CGRect)enterSingleLineViewportMode:(HKWViewportMode)mode captureTouches:(BOOL

UITextPosition *p = [self positionFromPosition:self.beginningOfDocument offset:self.selectedRange.location];
NSAssert(p != nil, @"Text position from %@, offset %ld returned nil. This should never happen.",
self.beginningOfDocument, self.selectedRange.location);
self.beginningOfDocument, (unsigned long)self.selectedRange.location);
CGRect caretRect = [self caretRectForPosition:p];

CGFloat offsetY = 0;
Expand Down

0 comments on commit 6dee8a3

Please sign in to comment.