Bug 1396368 - Follow up fix: Fixed Windows build error. CLOSED TREE
authorAndreas Farre <farre@mozilla.com>
Thu, 07 Sep 2017 11:51:54 +0200
changeset 429009 49fb9d3575019eba00e28cb7efb47ac70ecd68a4
parent 429008 509c46b010b6dc08e988d589bdfdd456d7277774
child 429010 ebe28677bef891e5c9c188a08a63288917b20477
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1396368
milestone57.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 1396368 - Follow up fix: Fixed Windows build error. CLOSED TREE
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -4386,18 +4386,18 @@ nsPIDOMWindowInner::SyncStateFromParentW
 
 void
 nsGlobalWindow::UpdateTopInnerWindow()
 {
   if (!IsInnerWindow() || AsInner()->IsTopInnerWindow()) {
     return;
   }
 
-  AsInner()->UpdateWebSocketCount(-mNumOfOpenWebSockets);
-  AsInner()->UpdateUserMediaCount(-mNumOfActiveUserMedia);
+  AsInner()->UpdateWebSocketCount(-(int32_t)mNumOfOpenWebSockets);
+  AsInner()->UpdateUserMediaCount(-(int32_t)mNumOfActiveUserMedia);
 }
 
 void
 nsPIDOMWindowInner::AddPeerConnection()
 {
   MOZ_ASSERT(NS_IsMainThread());
   MOZ_ASSERT(IsInnerWindow());
   mTopInnerWindow ? mTopInnerWindow->mActivePeerConnections++