Bug 1040027: Cast index to uint32 when comparing it with count in IsArrayEscaped; r=efaust

This commit is contained in:
Benjamin Bouvier 2014-08-05 09:27:20 +02:00
parent 851af43474
commit 4b8c0351b1

View File

@ -526,7 +526,7 @@ IsArrayEscaped(MInstruction *ins)
int32_t index;
if (!IndexOf(access, &index))
return true;
if (index < 0 || count <= index)
if (index < 0 || count <= uint32_t(index))
return true;
break;
}
@ -547,7 +547,7 @@ IsArrayEscaped(MInstruction *ins)
int32_t index;
if (!IndexOf(access, &index))
return true;
if (index < 0 || count <= index)
if (index < 0 || count <= uint32_t(index))
return true;
// We are not yet encoding magic hole constants in resume points.