This is an archive of the discontinued LLVM Phabricator instance.

[libc][obvious] fix sign warning in file_writer
ClosedPublic

Authored by michaelrj on Jun 16 2022, 10:14 AM.

Details

Summary

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.

Diff Detail

Event Timeline

michaelrj created this revision.Jun 16 2022, 10:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 16 2022, 10:14 AM
michaelrj requested review of this revision.Jun 16 2022, 10:14 AM
lntue accepted this revision.Jun 17 2022, 7:37 AM
This revision is now accepted and ready to land.Jun 17 2022, 7:37 AM
This revision was automatically updated to reflect the committed changes.