[vlc-devel] [PATCH 4/9] VLCKit: Added a couple missing casts

Florent Pillet fpillet at gmail.com
Fri Jul 11 01:35:06 CEST 2014


---
 Sources/VLCEventManager.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Sources/VLCEventManager.m b/Sources/VLCEventManager.m
index 9cb6521..9b87bf4 100644
--- a/Sources/VLCEventManager.m
+++ b/Sources/VLCEventManager.m
@@ -173,7 +173,7 @@ static void * EventDispatcherMainLoop(void * user_data)
                         message_newer.target == message.target &&
                         [message_newer.name isEqualToString:message.name]) {
                         if (last_match_msg >= 0) {
-                            [_messageQueue removeObjectAtIndex:last_match_msg];
+							[_messageQueue removeObjectAtIndex:(NSUInteger) last_match_msg];
                         }
                         last_match_msg = i;
                     }
@@ -197,7 +197,7 @@ static void * EventDispatcherMainLoop(void * user_data)
                         }
 
                         [newArg addObjectsFromArray:message_newer.object];
-                        [_messageQueue removeObjectAtIndex:i];
+						[_messageQueue removeObjectAtIndex:(NSUInteger) i];
                     }
                     /* It shouldn be a good idea not to collapse event with other kind of event in-between.
                      * This could be particulary problematic when the same object receive two related events
@@ -281,7 +281,7 @@ static void * EventDispatcherMainLoop(void * user_data)
         message_t *message = messages[i];
 
         if (message.target == target)
-            [messages removeObjectAtIndex:i];
+			[messages removeObjectAtIndex:(NSUInteger) i];
     }
 
     [_pendingMessagesLock unlock];
-- 
1.8.5.2 (Apple Git-48)




More information about the vlc-devel mailing list