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; }