From ffd00e40564026230778bdcfc7a14ef6277f8d88 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 6 Jan 2026 10:01:16 +0100 Subject: [PATCH] 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. --- caps/nsPrincipal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caps/nsPrincipal.cpp b/caps/nsPrincipal.cpp index 4e99a81c46..928f592a33 100644 --- a/caps/nsPrincipal.cpp +++ b/caps/nsPrincipal.cpp @@ -471,7 +471,7 @@ nsPrincipal::Write(nsIObjectOutputStream* aStream) // TODO: figure out exactly why this happens and fix the root cause. nsCSPContext* CSPContext = static_cast(mCSP.get()); if(CSPContext) { - int8_t CSPDepth = CSPContext->AddRef(); + auto CSPDepth = CSPContext->AddRef(); CSPContext->Release(); if(CSPDepth > 2) return NS_OK; }