mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 859021 - Add comments explaining "0 -". r=dholbert DONTBUILD
This commit is contained in:
parent
82d2af64ac
commit
d7d001c752
@ -454,6 +454,8 @@ DOMSVGPathSegList::RemoveItem(uint32_t aIndex,
|
||||
InternalList().mData.RemoveElementsAt(internalIndex, 1 + argCount);
|
||||
mItems.RemoveElementAt(aIndex);
|
||||
|
||||
// Note: The subtraction from 0 below is necessary to fix
|
||||
// MSVC build warning C4146 (negating an unsigned value).
|
||||
UpdateListIndicesFromIndex(aIndex, 0 - (argCount + 1));
|
||||
|
||||
Element()->DidChangePathSegList(emptyOrOldValue);
|
||||
@ -529,6 +531,8 @@ DOMSVGPathSegList::
|
||||
}
|
||||
animVal->mItems.RemoveElementAt(aIndex);
|
||||
|
||||
// Note: The subtraction from 0 below is necessary to fix
|
||||
// MSVC build warning C4146 (negating an unsigned value).
|
||||
animVal->UpdateListIndicesFromIndex(aIndex, 0 - (1 + aArgCountForItem));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user