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 195d36cb57
commit b903071735
1 changed files with 1 additions and 1 deletions

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)