diff --git a/libc/src/stdio/printf_core/file_writer.cpp b/libc/src/stdio/printf_core/file_writer.cpp --- a/libc/src/stdio/printf_core/file_writer.cpp +++ b/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(len)) written = -1; if (file->error_unlocked()) written = -2;