[libc][obvious] fix sign warning in file_writer
authorMichael Jones <michaelrj@google.com>
Thu, 16 Jun 2022 17:12:23 +0000 (10:12 -0700)
committerMichael Jones <michaelrj@google.com>
Fri, 17 Jun 2022 16:48:04 +0000 (09:48 -0700)
commitad709a752daa6aebf03a3d34fc5b2e24a8a0dbea
tree6fce9abeadba24f7679b3c7adcaf33c09a8bc653
parentfb3477a4dab0fb75c4bac858c33e6006dcc173ea
[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
libc/src/stdio/printf_core/file_writer.cpp