From fbba304a2d95128ca8bdcbc85aabdf136b74b57f Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 8 Jan 2026 00:15:27 +0800 Subject: [PATCH] ported from UXP: Issue #2858 - keep type in line with definition. (ffd00e40) --- caps/nsPrincipal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caps/nsPrincipal.cpp b/caps/nsPrincipal.cpp index 36adb9f59..3efa65ba2 100644 --- a/caps/nsPrincipal.cpp +++ b/caps/nsPrincipal.cpp @@ -478,7 +478,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 > 10) return NS_OK; }