mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
sanitise sign comparisons
This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390
This commit is contained in:
@@ -222,7 +222,8 @@ OptionValueArray::SetArgs (const Args &args, VarSetOperationType op)
|
||||
size_t i;
|
||||
for (i=0; i<argc; ++i)
|
||||
{
|
||||
const int idx = Args::StringToSInt32(args.GetArgumentAtIndex(i), INT32_MAX);
|
||||
const size_t idx =
|
||||
Args::StringToSInt32(args.GetArgumentAtIndex(i), INT32_MAX);
|
||||
if (idx >= size)
|
||||
{
|
||||
all_indexes_valid = false;
|
||||
|
||||
Reference in New Issue
Block a user