Unreviewed Windows build fix after r197728.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Mar 2016 18:51:04 +0000 (18:51 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Mar 2016 18:51:04 +0000 (18:51 +0000)
* platform/MemoryPressureHandler.cpp:
(WebCore::MemoryPressureHandler::ReliefLogger::logMemoryUsageChange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@197782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/MemoryPressureHandler.cpp

index 26c0d02..9e359a7 100644 (file)
@@ -1,3 +1,10 @@
+2016-03-08  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed Windows build fix after r197728.
+
+        * platform/MemoryPressureHandler.cpp:
+        (WebCore::MemoryPressureHandler::ReliefLogger::logMemoryUsageChange):
+
 2016-03-08  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r197765.
index 8399037..032dd32 100644 (file)
@@ -43,7 +43,6 @@
 #include "StyledElement.h"
 #include "WorkerThread.h"
 #include <JavaScriptCore/IncrementalSweeper.h>
-#include <sys/types.h>
 #include <wtf/CurrentTime.h>
 #include <wtf/FastMalloc.h>
 #include <wtf/StdLibExtras.h>
@@ -197,7 +196,7 @@ void MemoryPressureHandler::ReliefLogger::logMemoryUsageChange()
         return;
     }
 
-    ssize_t memoryDiff = currentMemory - m_initialMemory;
+    ptrdiff_t memoryDiff = currentMemory - m_initialMemory;
     if (memoryDiff < 0)
         MEMORYPRESSURE_LOG("Memory pressure relief: " STRING_SPECIFICATION ": -dirty %ld bytes (from %lu to %lu)", m_logString, (memoryDiff * -1), m_initialMemory, currentMemory);
     else if (memoryDiff > 0)