Issue #2858 - keep type in line with definition.

Depending on target platform, `AddRef()` returns either `unsigned long` or
`uint32_t`. Make the resulting type match for better optimization.
This commit is contained in:
Moonchild
2026-01-06 10:01:16 +01:00
committed by roytam1
parent 99c3171426
commit ffd00e4056
+1 -1
View File
@@ -471,7 +471,7 @@ nsPrincipal::Write(nsIObjectOutputStream* aStream)
// TODO: figure out exactly why this happens and fix the root cause.
nsCSPContext* CSPContext = static_cast<nsCSPContext*>(mCSP.get());
if(CSPContext) {
int8_t CSPDepth = CSPContext->AddRef();
auto CSPDepth = CSPContext->AddRef();
CSPContext->Release();
if(CSPDepth > 2) return NS_OK;
}