Fix a "comparison between signed and unsigned integer expressions"

warning.

llvm-svn: 62327
This commit is contained in:
Dan Gohman 2009-01-16 17:55:08 +00:00
parent 3f81059a01
commit e4265cdbb9

View File

@ -155,7 +155,7 @@ namespace {
if (C == Other)
return NoHazard;
unsigned Score = 0;
for (int i = 0; i != array_lengthof(Window); ++i)
for (unsigned i = 0; i != array_lengthof(Window); ++i)
if (Window[i] == C)
Score += i + 1;
if (Score > array_lengthof(Window) * 2)