-Wsign-compare triggered by MallocBench
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2017 01:47:57 +0000 (01:47 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2017 01:47:57 +0000 (01:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178544

Reviewed by Ryosuke Niwa.

* MallocBench/MallocBench/Interpreter.cpp:
(Interpreter::Interpreter):

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

PerformanceTests/ChangeLog
PerformanceTests/MallocBench/MallocBench/Interpreter.cpp

index 3f3c3ce..20b2a44 100644 (file)
@@ -1,3 +1,13 @@
+2017-10-19  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        -Wsign-compare triggered by MallocBench
+        https://bugs.webkit.org/show_bug.cgi?id=178544
+
+        Reviewed by Ryosuke Niwa.
+
+        * MallocBench/MallocBench/Interpreter.cpp:
+        (Interpreter::Interpreter):
+
 2017-10-07  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Unreviewed, build fix for MallocBench in Linux 32bit
index 585d52f..56ef822 100644 (file)
@@ -61,7 +61,7 @@ Interpreter::Interpreter(const char* fileName, bool shouldFreeAllObjects, bool u
     fstat(m_fd, &buf);
 
     m_opCount = buf.st_size / sizeof(Op);
-    assert(m_opCount * sizeof(Op) == buf.st_size);
+    assert(m_opCount * sizeof(Op) == static_cast<size_t>(buf.st_size));
 
     size_t maxSlot = 0;