[libc-commits] [PATCH] D127984: [libc][obvious] fix sign warning in file_writer

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jun 17 09:48:16 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGad709a752daa: [libc][obvious] fix sign warning in file_writer (authored by michaelrj).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127984/new/

https://reviews.llvm.org/D127984

Files:
  libc/src/stdio/printf_core/file_writer.cpp


Index: libc/src/stdio/printf_core/file_writer.cpp
===================================================================
--- libc/src/stdio/printf_core/file_writer.cpp
+++ libc/src/stdio/printf_core/file_writer.cpp
@@ -15,7 +15,7 @@
 
 int FileWriter::write(const char *__restrict to_write, size_t len) {
   int written = file->write_unlocked(to_write, len);
-  if (written != len)
+  if (written != static_cast<int>(len))
     written = -1;
   if (file->error_unlocked())
     written = -2;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127984.437948.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220617/467fab62/attachment.bin>


More information about the libc-commits mailing list