Fix another -Wsign-compare bug with GCC 4.9.2.
authorpaul.lind <paul.lind@imgtec.com>
Wed, 20 May 2015 07:13:07 +0000 (00:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 May 2015 07:12:47 +0000 (07:12 +0000)
BUG=

Review URL: https://codereview.chromium.org/1147923002

Cr-Commit-Position: refs/heads/master@{#28498}

src/api.cc

index a688238..202fec6 100644 (file)
@@ -6936,8 +6936,8 @@ bool Isolate::GetHeapObjectStatisticsAtLastGC(
   size_t object_size = heap->object_size_last_gc(type_index);
   if (!heap->GetObjectTypeName(type_index, &object_type, &object_sub_type)) {
     // There should be no objects counted when the type is unknown.
-    DCHECK_EQ(object_count, 0);
-    DCHECK_EQ(object_size, 0);
+    DCHECK_EQ(object_count, 0U);
+    DCHECK_EQ(object_size, 0U);
     return false;
   }