Browse Source

shared local library: fix warning

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Pierre SAGASPE 10 years ago
parent
commit
0b7d59536c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCSharedLibraryParser.m

+ 1 - 1
Sources/VLCSharedLibraryParser.m

@@ -31,7 +31,7 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS
 
 
 - (void)parseNetServiceOnBackgroundThread:(NSNetService *)aNetService
 - (void)parseNetServiceOnBackgroundThread:(NSNetService *)aNetService
 {
 {
-    NSString *hostnamePort = [NSString stringWithFormat:@"%@:%ld", [aNetService hostName], [aNetService port]];
+    NSString *hostnamePort = [NSString stringWithFormat:@"%@:%ld", [aNetService hostName], (long)[aNetService port]];
     NSArray *parsedContents = [self downloadAndProcessDataFromServer:hostnamePort];
     NSArray *parsedContents = [self downloadAndProcessDataFromServer:hostnamePort];
 
 
     if (parsedContents.count > 0) {
     if (parsedContents.count > 0) {