mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 992670 - Fix always true assertion condition in nsNavHistoryResult.cpp. r=mak
This commit is contained in:
parent
93e818d617
commit
7b8a4fad4b
@ -1455,9 +1455,10 @@ nsNavHistoryContainerResultNode::RemoveChildAt(int32_t aIndex,
|
|||||||
// Update stats.
|
// Update stats.
|
||||||
uint32_t oldAccessCount = 0;
|
uint32_t oldAccessCount = 0;
|
||||||
if (!aIsTemporary) {
|
if (!aIsTemporary) {
|
||||||
|
MOZ_ASSERT(mAccessCount >= mChildren[aIndex]->mAccessCount,
|
||||||
|
"Invalid access count while updating!");
|
||||||
oldAccessCount = mAccessCount;
|
oldAccessCount = mAccessCount;
|
||||||
mAccessCount -= mChildren[aIndex]->mAccessCount;
|
mAccessCount -= mChildren[aIndex]->mAccessCount;
|
||||||
NS_ASSERTION(mAccessCount >= 0, "Invalid access count while updating!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove it from our list and notify the result's observers.
|
// Remove it from our list and notify the result's observers.
|
||||||
|
Loading…
Reference in New Issue
Block a user