From 8ad291fb4db830fd8640c2903493f42c665ba459 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Fri, 20 Feb 2015 09:38:47 -0800 Subject: [PATCH] Bug 1130142, part 4 - Use reinterpret_cast for PR_SetThreadPrivate. r=froydnj --- xpcom/base/nsTraceRefcnt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/base/nsTraceRefcnt.cpp b/xpcom/base/nsTraceRefcnt.cpp index 3e982222282f..e41f1680a7a7 100644 --- a/xpcom/base/nsTraceRefcnt.cpp +++ b/xpcom/base/nsTraceRefcnt.cpp @@ -1381,6 +1381,6 @@ nsTraceRefcnt::SetActivityIsLegal(bool aLegal) PR_NewThreadPrivateIndex(&gActivityTLS, nullptr); } - PR_SetThreadPrivate(gActivityTLS, NS_INT32_TO_PTR(!aLegal)); + PR_SetThreadPrivate(gActivityTLS, reinterpret_cast(!aLegal)); #endif }