Commit 2d98d90a authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix compilation warnings

parent c6da1717
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
- (void)mediaDidFinishParsing:(VLCMedia *)media - (void)mediaDidFinishParsing:(VLCMedia *)media
{ {
APLog(@"Parsed %@ - %d tracks", media, [[_media tracksInformation] count]); APLog(@"Parsed %@ - %lu tracks", media, [[_media tracksInformation] count]);
if (_media.delegate != self) if (_media.delegate != self)
return; return;
......
...@@ -827,7 +827,7 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles"; ...@@ -827,7 +827,7 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
NSArray *results = [[self managedObjectContext] executeFetchRequest:request error:nil]; NSArray *results = [[self managedObjectContext] executeFetchRequest:request error:nil];
NSFileManager *fileManager = [NSFileManager defaultManager]; NSFileManager *fileManager = [NSFileManager defaultManager];
unsigned int count = results.count; unsigned int count = (unsigned int)results.count;
for (unsigned int x = 0; x < count; x++) { for (unsigned int x = 0; x < count; x++) {
MLFile *file = results[x]; MLFile *file = results[x];
NSString *urlString = [file url]; NSString *urlString = [file url];
......
...@@ -124,7 +124,7 @@ static inline NSNumber *numberFromThreeChars(char high, char mid, char low) ...@@ -124,7 +124,7 @@ static inline NSNumber *numberFromThreeChars(char high, char mid, char low)
return nil; return nil;
// Search for s01e10. // Search for s01e10.
for (NSUInteger i = 0; i < stringLength - 5; i++) { for (unsigned int i = 0; i < stringLength - 5; i++) {
if (c(str, i) == 's' && if (c(str, i) == 's' &&
isDigit(c(str, i+1)) && isDigit(c(str, i+1)) &&
isDigit(c(str, i+2)) && isDigit(c(str, i+2)) &&
...@@ -159,7 +159,7 @@ static inline NSNumber *numberFromThreeChars(char high, char mid, char low) ...@@ -159,7 +159,7 @@ static inline NSNumber *numberFromThreeChars(char high, char mid, char low)
// search for 0x00 // search for 0x00
if (!successfulSearch) { if (!successfulSearch) {
for (NSUInteger i = 0; i < stringLength - 4; i++) { for (unsigned int i = 0; i < stringLength - 4; i++) {
if (isDigit(c(str, i)) && if (isDigit(c(str, i)) &&
c(str, i+1) == 'x' && c(str, i+1) == 'x' &&
isDigit(c(str, i+2)) && isDigit(c(str, i+2)) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment