Bug 717733 - Fix int64 types usage in js/xpconnect, build failure on OpenBSD
authorLandry Breuil <landry@openbsd.org>
Thu, 12 Jan 2012 16:56:02 -0500
changeset 84372 821b2b0daf21a4f3cb0dba5f67eb20b951c19707
parent 84371 899a12aeff6cb8d35a7d2a0ddea9b0f6acb427f7
child 84373 d41fbe45000018a326fdb4f4f38153394be589a9
push id21842
push usermak77@bonardo.net
push dateFri, 13 Jan 2012 08:56:37 +0000
treeherdermozilla-central@8d4638feec54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs717733
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 717733 - Fix int64 types usage in js/xpconnect, build failure on OpenBSD js/xpconnect/src/XPCJSRuntime.cpp:1881: error: invalid conversion from 'PRInt64*' to 'int64_t*'
js/xpconnect/src/XPCJSRuntime.cpp
--- a/js/xpconnect/src/XPCJSRuntime.cpp
+++ b/js/xpconnect/src/XPCJSRuntime.cpp
@@ -1873,17 +1873,17 @@ public:
         return NS_OK;
     }
 
     NS_IMETHOD
     GetExplicitNonHeap(PRInt64 *n)
     {
         JSRuntime *rt = nsXPConnect::GetRuntimeInstance()->GetJSRuntime();
 
-        if (!JS::GetExplicitNonHeapForRuntime(rt, n, xpc::JsMallocSizeOf))
+        if (!JS::GetExplicitNonHeapForRuntime(rt, reinterpret_cast<int64_t*>(n), xpc::JsMallocSizeOf))
             return NS_ERROR_FAILURE;
 
         return NS_OK;
     }
 };
 
 NS_IMPL_THREADSAFE_ISUPPORTS1(XPConnectJSCompartmentsMultiReporter
                               , nsIMemoryMultiReporter