[Lldb-commits] [lldb] r153365 - /lldb/trunk/source/Host/macosx/launcherXPCService/main.mm

Johnny Chen johnny.chen at apple.com
Fri Mar 23 18:24:13 PDT 2012


Author: johnny
Date: Fri Mar 23 20:24:13 2012
New Revision: 153365

URL: http://llvm.org/viewvc/llvm-project?rev=153365&view=rev
Log:
Explicit casts to remove two compile-time warnings.

Modified:
    lldb/trunk/source/Host/macosx/launcherXPCService/main.mm

Modified: lldb/trunk/source/Host/macosx/launcherXPCService/main.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/launcherXPCService/main.mm?rev=153365&r1=153364&r2=153365&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/launcherXPCService/main.mm (original)
+++ lldb/trunk/source/Host/macosx/launcherXPCService/main.mm Fri Mar 23 20:24:13 2012
@@ -30,7 +30,7 @@
     if (errorCode)
         return errorCode;
     
-    cpu_type_t cpuType = xpc_dictionary_get_int64(message, LauncherXPCServiceCPUTypeKey);
+    cpu_type_t cpuType = (cpu_type_t)xpc_dictionary_get_int64(message, LauncherXPCServiceCPUTypeKey);
     if (cpuType == -2) {
         cpuType= CPU_TYPE_ANY;
     }
@@ -71,7 +71,7 @@
     char buf[50]; // long enough for 'argXXX'
     memset(buf, 0, 50);
     sprintf(buf, "%sCount", prefix);
-    int argsCount = xpc_dictionary_get_int64(message, buf);
+    int argsCount = (int)xpc_dictionary_get_int64(message, buf);
     if (argsCount == 0) {
         return true;
     }





More information about the lldb-commits mailing list