mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 562511 - comparison between signed and unsigned integer expressions in nsTextFragment::CopyTo, r=smaug
This commit is contained in:
parent
c803aa0b36
commit
9a72faf66f
@ -272,7 +272,7 @@ nsTextFragment::CopyTo(PRUnichar *aDest, PRInt32 aOffset, PRInt32 aCount)
|
||||
aOffset = 0;
|
||||
}
|
||||
|
||||
if (aOffset + aCount > GetLength()) {
|
||||
if (PRUint32(aOffset + aCount) > GetLength()) {
|
||||
aCount = mState.mLength - aOffset;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user