[Lldb-commits] [lldb] r357893 - Fix signed-unsigned comparison warning in Driver.cpp

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 8 02:17:57 PDT 2019


Author: labath
Date: Mon Apr  8 02:17:56 2019
New Revision: 357893

URL: http://llvm.org/viewvc/llvm-project?rev=357893&view=rev
Log:
Fix signed-unsigned comparison warning in Driver.cpp

Modified:
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=357893&r1=357892&r2=357893&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Mon Apr  8 02:17:56 2019
@@ -491,7 +491,7 @@ static ::FILE *PrepareCommandsForSourcin
   }
 
   ssize_t nrwr = write(fds[WRITE], commands_data, commands_size);
-  if (nrwr != commands_size) {
+  if (size_t(nrwr) != commands_size) {
     WithColor::error()
         << format(
                 "write(%i, %p, %" PRIu64




More information about the lldb-commits mailing list