[all-commits] [llvm/llvm-project] ad709a: [libc][obvious] fix sign warning in file_writer

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Jun 17 09:48:17 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad709a752daa6aebf03a3d34fc5b2e24a8a0dbea
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M libc/src/stdio/printf_core/file_writer.cpp

  Log Message:
  [libc][obvious] fix sign warning in file_writer

In the sign writer, a size_t was being compared to an int. This patch
casts the size_t to an int so that the comparison doesn't cause a sign
comparison warning.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D127984

More information about the All-commits mailing list