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