mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1040027: Cast index to uint32 when comparing it with count in IsArrayEscaped; r=efaust
This commit is contained in:
parent
851af43474
commit
4b8c0351b1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user