This is an archive of the discontinued LLVM Phabricator instance.

[unittests] Fix "comparison of integers of different signs" warnings
ClosedPublic

Authored by mstojanovic on Jan 13 2020, 10:26 AM.

Details

Summary

A warning is sent because std::distance() returns a signed type so CmpHelperEQ() gets instantiated into a function that compares differently signed arguments.

Diff Detail

Event Timeline

mstojanovic created this revision.Jan 13 2020, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2020, 10:26 AM
labath accepted this revision.Jan 14 2020, 12:44 AM

lgtm

This revision is now accepted and ready to land.Jan 14 2020, 12:44 AM
This revision was automatically updated to reflect the committed changes.