Bug 906986 - Fix linux build error in tests. r=drno,bwc draft
authorMichael Froman <mfroman@mozilla.com>
Fri, 18 Mar 2016 16:25:30 -0500
changeset 342943 8aab9cf901b6811f590fbfbb624c1d8673265307
parent 342231 b769e2acf25ef57df94110a1b7b2dba7bea808ea
child 343675 52925fd21f38b677d4abfde5fdbcbcad28802d02
push id13502
push usermfroman@nostrum.com
push dateMon, 21 Mar 2016 18:37:27 +0000
reviewersdrno, bwc
bugs906986
milestone47.0a1
Bug 906986 - Fix linux build error in tests. r=drno,bwc MozReview-Commit-ID: 5lsw2p3xSvH
media/mtransport/test/ice_unittest.cpp
--- a/media/mtransport/test/ice_unittest.cpp
+++ b/media/mtransport/test/ice_unittest.cpp
@@ -922,17 +922,17 @@ class IceTestPeer : public sigslot::has_
       // we can get the corresponding stream on the remote side
       size_t index = -1;
       for (size_t i=0; i<ice_ctx_->GetStreamCount(); ++i) {
         if (ice_ctx_->GetStream(i) == stream) {
           index = i;
           break;
         }
       }
-      ASSERT_NE(index, -1);
+      ASSERT_NE(index, -1u);
 
       ASSERT_GT(remote_->ice_ctx_->GetStreamCount(), index);
       nsresult res = remote_->ice_ctx_->GetStream(index)->ParseTrickleCandidate(
           candidate);
       ASSERT_TRUE(NS_SUCCEEDED(res));
       ++trickled_;
     }
   }