Fix build errors, warnings, and breakage on OS X

This commit is contained in:
Blake Watters
2012-09-25 21:28:58 -04:00
parent fee0c0dac0
commit 39f78d2cac
3 changed files with 10 additions and 8 deletions

View File

@@ -38,11 +38,11 @@ static NSString * RKStringFromIndexSet(NSIndexSet *indexSet) {
}
if (range.length == 1) {
[string appendFormat:@"%u", range.location];
[string appendFormat:@"%lu", (unsigned long) range.location];
} else {
NSUInteger firstIndex = range.location;
NSUInteger lastIndex = firstIndex + range.length - 1;
[string appendFormat:@"%u-%u", firstIndex, lastIndex];
[string appendFormat:@"%lu-%lu", (unsigned long) firstIndex, (unsigned long) lastIndex];
}
range.location = nextIndex;