From 547527278318a8d5df94ab1cfd186c054d6bf8f4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Jan 2011 21:49:24 -0500 Subject: [PATCH] Missed two int/unsigned usages in BSSourceView.m --- Source/BSSourceView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/BSSourceView.m b/Source/BSSourceView.m index 209f972..0f1e96d 100644 --- a/Source/BSSourceView.m +++ b/Source/BSSourceView.m @@ -158,14 +158,14 @@ return; // go through the document until we find the NSRange for the line we want - int rangeIndex = 0; + NSUInteger rangeIndex = 0; for (NSUInteger i = 0; i < line; i++) { rangeIndex = NSMaxRange([[textView string] lineRangeForRange:NSMakeRange(rangeIndex, 0)]); } // now get the true start/end markers for it - unsigned lineStart, lineEnd; + NSUInteger lineStart, lineEnd; [[textView string] getLineStart:&lineStart end:NULL contentsEnd:&lineEnd forRange:NSMakeRange(rangeIndex - 1, 0)]; [textView scrollRangeToVisible:[[textView string] lineRangeForRange:NSMakeRange(lineStart, lineEnd - lineStart)]]; } -- 2.43.5