зеркало из https://github.com/mozilla/gecko-dev.git
Bug 932370 - Fix signed/unsigned comparison warning; r=bustage on a CLOSED TREE
--HG-- extra : amend_source : 67b412ef5447b5a554ab0f2e00b39db33accd04b
This commit is contained in:
Родитель
a154cec3e0
Коммит
dfe3a809e7
|
@ -1010,7 +1010,7 @@ ContentEventHandler::GetFlatTextOffsetOfRange(nsIContent* aRootContent,
|
|||
|
||||
nsCOMPtr<nsIContentIterator> iter = NS_NewContentIterator();
|
||||
|
||||
if (aNode->Length() >= aNodeOffset) {
|
||||
if (aNode->Length() >= static_cast<uint32_t>(aNodeOffset)) {
|
||||
// Offset is within node's length; set end of range to that offset
|
||||
prev->SetEnd(startDOMNode, aNodeOffset);
|
||||
iter->Init(prev);
|
||||
|
|
Загрузка…
Ссылка в новой задаче