Permalink
Browse files

length returns unsigned int

  • Loading branch information...
1 parent 72bc59a commit 3a8914f8806486e7a174ab2e56ed22d865ab8675 Zachary Schneirov committed Feb 5, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 AttributedPlainText.m
  2. +1 −1 BookmarksController.m
View
@@ -282,7 +282,7 @@ - (NSDictionary*)attributesByRange {
NSMutableDictionary *allAttributes = [NSMutableDictionary dictionaryWithCapacity:1];
NSDictionary *attributes;
NSRange effectiveRange = NSMakeRange(0,0);
- int stringLength = [self length];
+ NSUInteger stringLength = [self length];
NS_DURING
while (NSMaxRange(effectiveRange) < stringLength) {
View
@@ -445,7 +445,7 @@ - (void)restoreWindowFromSave {
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"BookmarksVisible"]) {
[self loadWindowIfNecessary];
[window orderBack:nil];
- }
+ }
}
- (void)loadWindowIfNecessary {

0 comments on commit 3a8914f

Please sign in to comment.