Permalink
Browse files

Fixed compilation warnings.

  • Loading branch information...
1 parent d0e8c80 commit 3f1a1a6d51bc52d399b9f577b017856fab6916e3 @jcbertin jcbertin committed Jun 20, 2012
Showing with 9 additions and 9 deletions.
  1. +2 −2 Core/Source/DTCSSStylesheet.m
  2. +6 −6 Core/Source/NSAttributedString+DTCoreText.m
  3. +1 −1 Core/Source/NSData+DTBase64.m
@@ -222,7 +222,7 @@ - (void)parseStyleBlock:(NSString*)css
NSString* selector;
- NSInteger length = [css length];
+ NSUInteger length = [css length];
for (NSUInteger i = 0; i < length; i++) {
@@ -285,7 +285,7 @@ - (void)parseStyleBlock:(NSString*)css
braceMarker = i + 1;
}
- braceLevel = MAX(braceLevel-1, 0);
+ braceLevel = MAX(braceLevel-1, 0ul);
}
}
}
@@ -116,11 +116,11 @@ - (NSInteger)itemNumberInTextList:(DTCSSListStyle *)list atIndex:(NSUInteger)loc
- (NSRange)_rangeOfObject:(id)object inArrayBehindAttribute:(NSString *)attribute atIndex:(NSUInteger)location
{
- NSInteger searchIndex = location;
+ NSUInteger searchIndex = location;
NSArray *arrayAtIndex;
- NSInteger minFoundIndex = NSIntegerMax;
- NSInteger maxFoundIndex = 0;
+ NSUInteger minFoundIndex = NSUIntegerMax;
+ NSUInteger maxFoundIndex = 0;
BOOL foundList = NO;
@@ -348,7 +348,7 @@ - (NSString *)htmlString
NSArray *previousListStyles = nil;
- for (int i=0; i<[paragraphs count]; i++)
+ for (NSUInteger i=0; i<[paragraphs count]; i++)
{
NSString *oneParagraph = [paragraphs objectAtIndex:i];
NSRange paragraphRange = NSMakeRange(location, [oneParagraph length]);
@@ -748,7 +748,7 @@ - (NSString *)plainTextString
return [tmpString stringByReplacingOccurrencesOfString:UNICODE_OBJECT_PLACEHOLDER withString:@""];
}
-#pragma Generating Special Attributed Strings
+#pragma mark Generating Special Attributed Strings
+ (NSAttributedString *)prefixForListItemWithCounter:(NSUInteger)listCounter listStyle:(DTCSSListStyle *)listStyle listIndent:(CGFloat)listIndent attributes:(NSDictionary *)attributes
{
// get existing values from attributes
@@ -794,7 +794,7 @@ + (NSAttributedString *)prefixForListItemWithCounter:(NSUInteger)listCounter lis
fontDesc.boldTrait = NO;
fontDesc.italicTrait = NO;
- CTFontRef font = [fontDesc newMatchingFont];
+ font = [fontDesc newMatchingFont];
[newAttributes setObject:CFBridgingRelease(font) forKey:(id)kCTFontAttributeName];
}
@@ -101,7 +101,7 @@
size_t accumulateIndex = 0;
while (i < length)
{
- unsigned char decode = base64DecodeLookup[inputBuffer[i++]];
+ unsigned char decode = base64DecodeLookup[(int) inputBuffer[i++]];
if (decode != xx)
{
accumulated[accumulateIndex] = decode;

0 comments on commit 3f1a1a6

Please sign in to comment.